本帖最后由 sunzengli 于 2025-6-6 11:33 编辑
[color=rgba(0, 0, 0, 0.87)]部署算法需要完成以下四个方面的功能:
创建DSP算法组件目录及编写代码
在DSP上录音
使用算法加速库加速算法
核间通讯
DUMP 数据到PC
创建DSP算法组件目录
[color=rgba(0, 0, 0, 0.87)]创建并进入目录:
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">mkdir -p lichee/rtos-components/thirdparty/my_dsp_asr/srcmkdir -p lichee/rtos-components/thirdparty/my_dsp_asr/inccd lichee/rtos-components/thirdparty/my_dsp_asr/
[color=rgba(0, 0, 0, 0.87)]编写 Kconfig 文件:
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">menu "my dsp asr"config COMPONENTS_MY_DSP_ASR bool "my dsp asr" depends on ARCH_DSP default n help to doendmenu
[color=rgba(0, 0, 0, 0.87)]修改 Kconfig后建议重新 menuconfig
[color=rgba(0, 0, 0, 0.87)]在 lichee/rtos-components/thirdparty/Kconfig 中追加:
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">source "components/common/thirdparty/my_dsp_asr/Kconfig"
[color=rgba(0, 0, 0, 0.87)]编写 Makefile:
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">obj-y += src/my_dsp_asr.o#selfCFLAGS += -Icomponents/common/aw/asr_demo/inc/
[color=rgba(0, 0, 0, 0.87)]在 lichee/rtos-components/thirdparty/Makefile 中追加: |