Closed Urmi-Jana closed 3 months ago
Closing as it should be working now.
Hi @mansnils , thanks so much for the fix, the make command works perfectly now.
I wanted to clarify that this makes the CMSIS files by default, even it is not specified on the make command. Is it not possible to build the TFLM library completely without CMSIS?
That's a good point, as it should be possible to build the TFLM library without CMSIS for this target. Reason being is that a CMSIS header is needed for performance counters: https://github.com/tensorflow/tflite-micro/blob/7aa0d93dcef1bba137c742836aed444cf7c853ef/tensorflow/lite/micro/cortex_m_generic/micro_time.cc#L19 The alternative would be to remove the support for those counters.
So, to sum it up, CMSIS is absolutely required to use TFLM on cortex-m4, since, again, those counters are needed for multiple use-cases
While attempting to build the TFLM library for the Cortex-M4 platform without CMSIS optimizations with the instructions given in [https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/docs/new_platform_support.md](), the build process fails due to the ARMCM4.h file not existing. The error message (see below) indicates that the ARMCM4.h file is required for micro_time.o file
Platform: Ubuntu 20.04 Python: 3.8 Tensorflow: 2.12.0
Steps to reproduce: Execute the command
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=cortex_m_generic TARGET_ARCH=cortex-m4 microlite
Expected behavior: The build process executes successfully, producing the appropriate library file to be included in my project
Any help would be highly appreciated!!