Skip to content

修改ML-KWS-for-MCU的部分配置内容,使其可正常编译运行

Notifications You must be signed in to change notification settings

2524056672/kws-stm32f7disco-cmsisNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

kws-stm32f7disco-cmsisNN

修改ML-KWS-for-MCU的部分配置内容,使其可正常编译运行

github源码

下载、添加mbed以及开发板驱动

  • 下载cmsis
cd Deployment
git clone https://github.com/ARM-software/CMSIS_5.git
  • 修改cmsis中内容
cd CMSIS_5/CMSIS/DSP/Source/

将该路径下所有文件夹中对应文件夹的.c文件中的内容屏蔽(注释),否则之后的编译会上报变量重定义错误,例如:

vi TransformFunctions/TransformFunctions.c 
  • 创建mbed工程
mbed new kws_realtime_test --mbedlib
  • 添加开发板驱动已经mbed工具等
cd kws_realtime_test
cp ../Examples/realtime_test/mbed_libs/*.lib .
mbed deploy
rm -rf 65be27845400
tar -zxf 65be27845400.tar.gz
  • 查看mbed工程中文件
mbed deploy
ls                                       
AUDIO_DISCO_F746NG  AUDIO_DISCO_F746NG.lib  BSP_DISCO_F746NG  BSP_DISCO_F746NG.lib  BUILD  LCD_DISCO_F746NG  LCD_DISCO_F746NG.lib  mbed  mbed_app.json  mbed.bld  mbed.lib  mbed_settings.py  mbed_settings.pyc

编译

  • 对象设置为f7disco开发板
mbed compile -m DISCO_F746NG -t GCC_ARM \
  --source . --source ../Source --source ../Examples/realtime_test \
  --source ../CMSIS_5/CMSIS/NN/Include --source ../CMSIS_5/CMSIS/NN/Source \
  --source ../CMSIS_5/CMSIS/DSP/Include --source ../CMSIS_5/CMSIS/DSP/Source \
  --source ../CMSIS_5/CMSIS/Core/Include \
  --profile ../release_O3.json -j 8

下载执行

  • 直接将编译生成的BUILD/DISCO_F746NG/GCC_ARM-RELEASE_O3/kws_realtime_test.bin 文件拷贝到开发板上(开发板通过数据线连接后会在“我的电脑”下生成一个“DIS_F746NG”盘符)

About

修改ML-KWS-for-MCU的部分配置内容,使其可正常编译运行

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published