cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-AI - Middlewares Folder is not Generated

kahuna
Visitor

Hello,

I am creating a new project on an STM32F4 nucleo board. I configured the X-CUBE-AI library as shown below and specified a TFLite model:

kahuna_0-1758122433978.png

When generating code on a fresh project, the "Middlewares" folder is not generated. The project fails to build because the "ai_platform.h" file is missing (it should be in the Middlewares folder). The problem occurs with a fresh STMCubeIDE project and with a fresh STMCubeMX project.

I noticed that the "Middlewares" folder is generated correctly once I add additional libraries, such as FreeRTOS. In this case, both the FreeRTOS and the X-CUBE-AI code is generated correctly in the "Middlewares" folder. However, I don't want an RTOS for my application.

How can I only generate the code for X-CUBE-AI?

Best regards,

kahuna

0 REPLIES 0