Hi, here’s a quick guide on how to build the C++ Library using STM32CubeIDE.
- Export as C++ Library from the Deployment tab in Edge Impulse.
- Add the
edge-impulse-sdk
,tflite-model
andmodel-parameters
folder to theCore
directory of your project [1] - Right click on the project, select Properties > C/C++ Build > Settings > Tool Settings and add these lines to the ‘Include paths’ for both the GCC and G++ Compiler:
"${workspace_loc:/${ProjName}/Core}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/CMSIS/Core/Include}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/third_party/flatbuffers/include}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/CMSIS/DSP/Include}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/CMSIS/DSP/PrivateInclude}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/CMSIS/NN/Include}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/third_party}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/third_party/flatbuffers}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/third_party/gemmlowp}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/third_party/ruy}"
"${workspace_loc:/${ProjName}/Core/edge-impulse-sdk/third_party}"
That’s it. You can now build as usual.
[1] Because I have no f@&* clue how to mark a folder as ‘contains source code that you need to compile’