Preparing the skeleton of the TFLu project
Only a few steps are separating us from the completion of this project. Now that we have the input test image, we can leave Colab's environment and focus on the application with the Zephyr OS.
In this recipe, we will prepare the skeleton of the TFLu project from the pre-built TFLu hello_world
sample available in the Zephyr SDK.
The following C files contain the code referred to in this recipe:
main.c
,main_functions.cc
, andmain_functions.h:
https://github.com/PacktPublishing/TinyML-Cookbook/blob/main/Chapter07/ZephyrProject/Skeleton
Getting ready
This section aims to provide the basis for starting a new TFLu project with the Zephyr OS from scratch.
The easiest way to create a project is to copy and edit one of the pre-built samples for TFLu. The samples are available in the ~/zephyrproject/zephyr/samples/modules/tflite-micro
folder. At the time of writing, there are two ready-to-use examples:
hello_world...