Visible to Intel only — GUID: lhm1740038670643
Ixiasoft
3.2.3. Creating an Application Project File
Application Project (APP) stores the software TinyML application for Nios® V/g processor system.
Follow these steps to create an application project file:
- In <Working directory>/software/app folder, copy the following LiteRT for Microcontrollers libraries from tflite_app.
- signal
- tensorflow
- third_party
- Create a new folder in app called image_classification (or any preferred name).
- Navigate into the image_classification folder, create two folders named image and model, and upload the main.cc binary (Refer to the examples in Appendix).
- In image folder, store the MNIST C array samples.
- In model folder, store the model_data.cc, model_data.h and model_settings.h source codes.
- Launch the Nios® V Command Shell.
$ niosv-shell
- Execute the command below to generate an application CMakeLists.txt.
$ niosv-app --bsp-dir=software/bsp --app-dir=software/app \ --srcs-recursive=software/app/image_classification,\ software/app/signal,\ software/app/tensorflow \ --incs=software/app,\ software/app/image_classification/model,\ software/app/image_classification/image,\ software/app/tensorflow,\ software/app/third_party/flatbuffers/include,\ software/app/third_party/gemmlowp,\ software/app/third_party/kissfft,\ software/app/third_party/ruy
Figure 16. Content of app Folder with Generated CMakeLists File