undefined.elf
undefined.elf
DIIDevHeads IoT Integration Server
Created by ZacckOsiemo on 12/30/2024 in #🪲-firmware-and-baremetal
How to Build ARM Firmware Using Bazel?
Generate TFLM tree
Refer: new_platform_support readme

python3 tensorflow/lite/micro/tools/project_generation/create_tflm_tree.py \
-e hello_world \
-e micro_speech \
-e person_detection \
/your/desired/path/tflm-tree
Run this command to generate tflm-tree directory in your desired path. Copy the tensorflow, third_party and signal folders into your stm32 project includes directory (eg: /core/Inc).

Additional you have to copy fixedpoint and internal directories from the tflite-micro repository that are generated while buiding the library. You can find them in tflite-micro/tensorflow/lite/micro/tools/make/downloads/gemmlowp/ directory. You need to add these to your includes directory (core/Inc) as well.

Note: Only header files are needed. You can run the command find . -type f -name "*.cc" -exec rm -f {} + to remove all .cc files in the current directory.

Additionally, you might also need to add the following as includes directories under Project properties -> C/C++ build -> settings -> MCU/MPU g++ compiler -> include paths

"core/Inc/third_party/flatbuffers/include"
"core/Inc/third_party/kissfft"
Generate TFLM tree
Refer: new_platform_support readme

python3 tensorflow/lite/micro/tools/project_generation/create_tflm_tree.py \
-e hello_world \
-e micro_speech \
-e person_detection \
/your/desired/path/tflm-tree
Run this command to generate tflm-tree directory in your desired path. Copy the tensorflow, third_party and signal folders into your stm32 project includes directory (eg: /core/Inc).

Additional you have to copy fixedpoint and internal directories from the tflite-micro repository that are generated while buiding the library. You can find them in tflite-micro/tensorflow/lite/micro/tools/make/downloads/gemmlowp/ directory. You need to add these to your includes directory (core/Inc) as well.

Note: Only header files are needed. You can run the command find . -type f -name "*.cc" -exec rm -f {} + to remove all .cc files in the current directory.

Additionally, you might also need to add the following as includes directories under Project properties -> C/C++ build -> settings -> MCU/MPU g++ compiler -> include paths

"core/Inc/third_party/flatbuffers/include"
"core/Inc/third_party/kissfft"
113 replies