Git Product home page Git Product logo

kws-stm32f7disco-cmsisnn's Introduction

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”盘符)

kws-stm32f7disco-cmsisnn's People

Contributors

2524056672 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.