We disable Thread-Safe Initialisation by setting "-fno-threadsafe-statics" ... This fixes the Missing Functions "__cxa_guard_acquire" and "__cxa_guard_release" in #BL602 TensorFlow
Just realised that "CPPFLAGS" works for building #BL602 C++ Libraries, but not for BL602 C++ Apps ... Dang
https://github.com/lupyuen/bl_iot_sdk/blob/tflite/customer_app/sdk_app_tflite/Makefile#L12-L20
Final few Missing Functions for TensorFlow Lite on #BL602 ... Let's find out what they are
https://github.com/lupyuen/bl_iot_sdk/tree/tflite/customer_app/sdk_app_tflite
Setting this flag will tell TensorFlow Lite to use Static Memory (instead of Heap Memory) on #BL602 ... Neat!
https://github.com/lupyuen/tflite-bl602/blob/main/bouffalo.mk#L46-L49
Our #BL602 Build of TensorFlow Lite calls "new" and "delete" to Allocate and Deallocate C++ Objects in Heap Memory ... But it's supposed to use Static Memory, not Heap Memory ... Let's find out why
https://github.com/lupyuen/bl_iot_sdk/tree/tflite/customer_app/sdk_app_tflite
Source Folders for TensorFlow Lite are defined in the #BL602 Makefiles "bouffalo.mk" and "component.mk"
https://github.com/lupyuen/tflite-bl602/blob/main/bouffalo.mk
Our #BL602 Build of TensorFlow Lite ... Fixing a few more missing C++ Functions
https://github.com/lupyuen/bl_iot_sdk/tree/tflite/customer_app/sdk_app_tflite
#BL602 TensorFlow Lite also needs the "ruy" library ... For matrix multiplication
https://github.com/lupyuen/tflite-bl602/blob/main/bouffalo.mk#L71-L82
#BL602 Makefile for TensorFlow Lite needs this ... To fix the Math build errors
https://github.com/lupyuen/tflite-bl602/blob/main/bouffalo.mk#L21-L27
Our #BL602 TensorFlow Build hitting some Math errors ... Let's fix them
https://github.com/lupyuen/bl_iot_sdk/tree/tflite/customer_app/sdk_app_tflite
TensorFlow Lite Makefile looks complicated ... Let's download "gemmlowp" the simple way on #BL602
https://github.com/lupyuen/tflite-bl602/blob/main/bouffalo.mk#L52-L69
TensorFlow Lite downloads dependencies in an unusual way ... Let's so the same in our #BL602 Makefile
Our #BL602 TensorFlow Build has lotsa missing functions ... Let's fix the build
https://github.com/lupyuen/bl_iot_sdk/tree/tflite/customer_app/sdk_app_tflite
TensorFlow Lite app exports the functions "setup" and "loop" (So cute!) ... Let's add them to #BL602 Command-Line Interface
https://github.com/lupyuen/bl_iot_sdk/blob/tflite/customer_app/sdk_app_tflite/sdk_app_tflite/demo.c
Fixed the #BL602 Makefile to install FlatBuffers ... For compiling TensorFlow Lite
https://github.com/lupyuen/tflite-bl602/blob/main/bouffalo.mk#L16-L56
IoT Techie and Educator / Apache NuttX PMC