2025-07-25 9:35 AM
Hello,
I am trying to transform the object detection project that can be found in ST model zoo services from bare-metal to FreeRTOS using STM32N6570-DK board.
Following https://community.st.com/t5/stm32-mcus/how-to-use-freertos-with-stm32n6/ta-p/805334
I was able to create a running project with some threads that blink the LEDs and display the camera input to the LCD.
However when I try to add a model that performs inference in one thread, the program breaks in LL_ATON_OSAL_WFE(). I followed the directions in https://stedgeai-dc.st.com/assets/embedded-docs/stneuralart_api_and_stack.html#freertos but they are not very detailed in the context of the whole project.
Is there any running example that performs inference in the NPU inside a FreeRTOS thread?
There is a object detection project in https://github.com/STMicroelectronics/x-cube-n6-ai-people-detection-tracking
that I was able to run but it does not use the CMSIS RTOS2 and the FreeRTOS is configured to support only static allocation of the threads. Is there a reason for that?
Thanks in advance for any help.