Digit Recognition AI/ML Application on SAM E51 IGAT Curiosity Evaluation Kit Using MPLAB® Harmony v3: Step 6
Configure TensorFlow Lite for Microcontroller
The TensorFlow Lite for Microcontroller (TFLite Micro) block is added to enable the TFLite Micro runtime engine and the TFLite Micro library to run the Digit Recognition Machine Learning Model on SAM E51 MCU.
Under the left tab Resource Management (MCC), go to Device Resources and expand Libraries > Third Party Libraries > Tensor Flow.
Click on the symbol beside TFLite Micro to add the TFLite Micro library to the project.
Select the TFLite Micro in the Project Graph and verify the default TFLite Micro library configuration on Configuration Options.
Note:
- The CMSIS-NN Library check box enables the TFLite Micro library to override the default floating-point mathematical operations to use integer quantized CMSIS neural network functions.
- This option works only when the model is converted to TFLite format with 8-bit integer quantization, and the CMSIS NN library package is added to the project; otherwise, the TFLite Micro library uses the default floating-point mathematical functions.
Configure CMSIS NN Package
The CMSIS is added by default to the project graph. Select the CMSIS in the Project Graph and configure the CMSIS pack on the Configuration Options.
Configure STDIO library
Ensure you add and configure the STDIO library to enable debug message printing on a serial console. This is needed to enable error message printing from the TFLte library, which maps the macro TF_LITE_REPORT_ERROR to the printf function.
STDIO is already configured with SECOM2 in Step 2.1