2 Star 4 Fork 0

珠海普林芯驰科技有限公司 / SDK-SPV1x

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

SDK-SPV1x

本页面包含普林芯驰SPV1x SoC的正式SDK代码,用户可以基于预设模版,使用SDK提供的外设和场景库API,构建自己的专属应用场景。 我司将根据市场需求和SoC能力,不断丰富SDK内容,向选择我司芯片的客户提供持久稳健的软件支持。再次感谢您的关注和使用。

详细版本迭代记录请参考 SPV1x 用户编程手册

更新日志

1.3.2 - 2024-05-22

改动

  • 调整demo工程的具体配置,并适配SDK改动。
  • s1a播放器库,优化低码率下的表现。

1.3.1 - 2024-05-08

增加

  • lowlevel库,追加麦克风初始化/去初始化API。

改动

  • MP3 mpeg2播放器库,追加单曲循环功能的钩子函数。
  • MP3编码录音库 mp3_mpeg2_enc,进一步降低静态表开销。
  • lowlevel库,iovcc电压枚举定义命名调整。

1.3.0 - 2024-04-18

增加

  • vfs sdcard静态库。
  • MP3 mpeg2播放器库,支持16/24KHz输出采样率的mp3解码,主要用于MP3录音回放以及离线语音识别配套播报音演出。
  • 全功能MP3播放器库,支持MP3标准下全部格式(MPEG-1/2/2.5)播放的解码器,需配合vfs使用。
  • vorbis播放器库,主要用于平均码率12kbps以上音乐内容的播放。
  • MP3/s1a/Vorbis/Silk播放器的vfs版本,用于支持外挂spi接口数据flash和(或)tf卡的应用。
  • 16KHz采样率MP3编码录音库 mp3_mpeg2_enc。
  • SoC层级控制库。

改动

  • lowlevel静态库 API, ADC初始化追加了用于控制gpadc功能是否开启的传参。
  • s1a播放器库, 显著优化了8kbps和10kbps码率下的播放效果。
  • DMA外设驱动,DMA初始化配置结构体追加新传参。
  • LVD驱动库,正确区分SoC A/B版型并施加正确的LVD电压设置。
  • 优化Efuse驱动库。
  • 优化Flash操作库(擦除/写入)。
  • 优化SPI驱动库。
  • 在线烧录器上位机 ODT 升级至 1.4.2 版本,外部flash读写工具支持操作16MB以上容量flash。
  • 音频转换工具 ACT 升级至 1.5.1 版本。
  • 将用户工程初始化代码运行期间的CPU/NOR频率分别提升至49MHz/24.5MHz(前值24.5MHz/3MHz),提高初始化速度。
  • 调整用户配置文件 board.h 的配置逻辑,提高易用性。

作废

  • MP3录音库recorder_enc。
  • MP3单通道16KHz/32KHz播放器库。

1.2.4 - 2024-01-25

:warning: 基于SDK v1.2.3的用户工程需要完成以下适配 :warning:

  1. 将app_init()中通过vmic_iovcc_adjust()对iovcc/vmic进行设置的流程删除。
  2. 在app_init()中调用sys_set_iovcc()对iovcc电压进行静态设置。
  3. 如果使用audio adc和(或)gpadc,需要在app_init()中调用adc_sys_init()对adc进行初始化。如果只使用gpadc,adc_sys_init()的“采样率”和“增益”参数设置无影响。
  4. 删除其余流程中可能存在的vmic_iovcc_adjust()调用,例如存在于tick_handler_100ms()中的iovcc/vmic动态调整逻辑。

作废

  • lowlevel静态库:根据vcc电压对iovcc和vmic电压进行动态调整的机制作废,用户需要根据方案实际的供电情况,手动设置固定的iovcc和vmic电压。删除API: vmic_iovcc_adjust()。
  • ssop24封装spv1x2a8链接器脚本。

增加

  • lowlevel静态库 API:adc_sys_init() ADC初始化(同时设置vmic电压), sys_set_iovcc() 调整iovcc电压, sys_set_vmic() 调整vmic电压,sys_get_vcc() 读取vcc电压。
  • sop8封装spv100a4对应的链接器脚本。
  • esop8封装spv1x0b4对应的链接器脚本。
  • sop16封装spv1x1a4对应的链接器脚本。
  • gpio API: gpio_set_mfp() 配置io口mfp功能。
  • soc API: soc_watchdog_start/stop/clear() 控制看门狗定时器, soc_set_brom_flag() 配置brom预设功能标志位。
  • 16KHz MP3播放器库 API: player_mp3_16khz_set_loop(), 用于设置正在播放的音乐的单曲循环标志。

改动

  • 16KHz MP3播放器库:调整内部DRC参数,优化音量体验。
  • s1a播放器库:调整内部DRC参数,优化音量体验。
  • 全部封装的链接器脚本(.ld): 进一步修正flash_op_init()调用在链接阶段可能触发的relocation报错问题。
  • start.S为Header Section追加新信息,便于后续项目开展。
  • 音频转换和打包工具升级到v1.2.0,优化s1a编码器效果,为mp3编码器提供平均码率(abr)选项。

1.2.3 - 2023-12-15

改动

  • 修复flash_op_init()在链接阶段可能触发的relocation错误。
  • 调整lpm_hibernate_enter()的实现。
  • 优化demos/spv120a4_asr模版工程的iovcc电压策略。

1.2.2 - 2023-12-08

增加

  • 链接器脚本(.ld)追加ADPCM播放所需的overlay结构
  • ODT工具升级至 v1.3.0 版本,提供对外挂SPI NOR Flash数据介质的烧录功能。
  • 提供Force Hibernate API: lpm_hibernate_enter(),确保Hiberate模式的稳定进入。
  • SDK现开始提供demos文件夹,包含特定SPV1x封装的典型使用场景演示。

改动

  • 修复templates/edpm工程下的Keypad Matrix API逻辑问题。
  • 修改IOVCC和VMIC电压的初始化策略:初始电压固定为 IOVCC = 3.2v, VMIC = 3.0v。

作废

  • OSC CORE时钟设定现在仅支持 80/100 MHz 档位, 60/70/90/110 MHz 档位的API枚举定义已删除。

1.2.1 - 2023-11-16

增加

  • 音效库增加“参量均衡器”功能。
  • 静态库 lowlevel 增加对外接Flash所需Delay Chain调节的支持。

1.2.0 - 2023-11-10

增加

  • 发布固件烧录程序ODT v1.2.0版本,与SDK v1.2.0配套使用。

改动

  • 优化量产烧录流程的特定改动。
  • 用户程序初始化阶段, system_init() 将复位特定PMU寄存器组合,确保多个ONOFF按键唤醒场景和唤醒后ONOFF键值检测逻辑的正确执行。
  • SDK/cpu文件夹下现针对SPV1x SoC不同封装提供对应的链接器脚本(.ld),体现内部/外接NOR Flash单元的正确配置:容量/核心参数(如高速模式下Dummy Cycle),直接影响该封装下程序的启动和执行,请根据实际情况选择。原有默认.ld文件现更名为generic_flash.ld,适用于EVB/Demo Board等官方提供的开发套件。
  • 静态库 lowlevel 和启动代码 start.S 跟随上述改动做必要修改。
  • 静态库: 录音机 接入双二阶高通滤波器改善低频体验,API层面无变化。
  • 优化链接器脚本架构,提供更多可用SRAM空间。

1.1.0 - 2023-11-03

增加

  • 静态库:音效(Audio Effect)。
  • 执行JTAG调试所需的调试器驱动程序、openocd配置文件等。
  • 驱动半双工模式外置Flash所需的代码(需配套固件烧录程序ODT v1.1.0版本使用)。

改动

  • 固件烧录程序 ODT:升级至v1.1.0版本,提供对半双工Flash的烧录支持。
  • 静态库: 录音机 在16KHz采样率下提供可选的编码码率:16、24、32、64kbps。
  • 静态库: MP3单声道16KHz播放器 改善“单曲循环”设置下的播放体验, API层面无需适配。
  • 静态库:flash_api,对半双工模式Flash进行适配, API层面无需适配。
  • 静态库:lowlevel,对半双工模式Flash进行适配, API层面无需适配。
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

针对普林芯驰SPV1x SoC系列的开放SDK,请结合用户编程手册进行使用。 展开 收起
C 等 2 种语言
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/spacetouch-zh/sdk-spv1x.git
git@gitee.com:spacetouch-zh/sdk-spv1x.git
spacetouch-zh
sdk-spv1x
SDK-SPV1x
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891