STM32N6 NUCLEO - Infinite loop issue in LL_ATON_RT_RunEpochBlock() during NPU inference
Hello,
I am currently experiencing difficulties using the STM32N6 NUCLEO board.
My goal is to test NPU execution using X-CUBE-AI within CubeMX. However, I am stuck in an infinite loop inside the MX_X_CUBE_AI_Process function. Specifically, LL_ATON_RT_RunEpochBlock() continuously returns only the LL_ATON_RT_DONE status, preventing the loop from terminating as expected.
do {
ret = LL_ATON_RT_RunEpochBlock(&NN_Instance_Default);
if (ret == LL_ATON_RT_WFE) LL_ATON_OSAL_WFE();
} while (ret != LL_ATON_RT_DONE);
I Can't get the LL_ATON_RT_DONE, only LL_ATON_RT_WFE.
This issue persists even when using files generated via Cube AI Studio.
I have configured the AXI and Clock settings in CubeMX (CPU: 600MHz, NPU: 800MHz, AXI: 800MHz). Since the model is simple, I am using internal memory only and have not enabled any security (TrustZone) or external memory settings.
Environment Versions:
CubeIDE: 2.1.1
CubeMX: 6.16.1
CubeAI Studio: 1.1.0
CubeProgrammer: 2.22.0
ST Edge AI: 4.0
ST-LINK: V3J17M10
I have attached one of the project files I’ve been testing. It would be a huge help if you could guide me to a solution for this issue.
