Troubleshooting run on STM32U545
- July 20, 2026
- 1 reply
- 11 views
Hello ST team,
I am trying to run an ONNX model on a NUCLEO-U545RE-Q board using STM32Cube AI Studio
I first tried with a model of about 281.75 KiB weights, and the generated project failed at build/link stage with an undefined UART symbol.
To check whether the issue was related to memory size, I also tried a smaller model:
- Model: model_seqlen20.onnx
- Input: f32(1x20x25)
- Output: f32(1x1)
- Parameters: 32,129
- Weights: 128,516 B / 125.50 KiB
- Activations: 2,256 B / 2.20 KiB
- Total AI flash reported: 130,190 B
- Target: stm32u5
- Board: NUCLEO-U545RE-Q
- Firmware package: STM32Cube_FW_U5_V1.9.0
- ST Edge AI Core: v4.0.1-20581
- Toolchain: STM32CubeIDE
The model generation step completes successfully. The reported memory footprint is small enough for the board.
However, during the Run flow, STM32Cube AI Studio the build fails with:
undefined reference to `UartHandle`
The errors are:
Middlewares/ST/AI/Misc/Src/aiTestUtility.c:
- _put_c_driver: undefined reference to `UartHandle`
- ioRawWriteBuffer: undefined reference to `UartHandle`
- ioRawReadBuffer: undefined reference to `UartHandle`
The final error is:
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:69: run-1.elf] Error 1
This seems unrelated to model size, because the smaller model also fails in the same UART-related step.
It looks like the generated validation project expects a UART handle named `UartHandle`, but the generated CubeMX/CubeIDE project does not define it or does not initialize the board communication interface needed by the validation middleware.
Could you please confirm whether automatic Run/validation on NUCLEO-U545RE-Q is supported with STM32CubeAI Studio and ST Edge AI Core v4.0.1?
Is there a specific communication setting I need to select in the tool, or is this a known issue in the generated project template for NUCLEO-U545RE-Q?
I am attaching:
- the full generation/build log
- the ONNX model used for this smaller test
Thank you.
