Question
Configuration of X-CUBE-AI creates a HardFault in the linker script
- July 16, 2026
- 1 reply
- 30 views
Hi,
I am working on a project using STM32H743ZITx and trying to deploy an ONNX model using X-CUBE-AI.
My .ld file was doing just fine until I add the X-CUBE-AI in the middleware. It will split the BSS range across DTCMRAM and AXI‑RAM. The startup file’s BSS‑zeroing logic accesses invalid non‑hardware‑backed addresses between the two RAM regions and results in a HardFault right after Reset_Handler.
My configuration is:
- MCU: STM32H743ZITx
- STM32CubeMX: 6.18.0
- STM32Cube FW_H7: 1.13.0
- STM32CubeIDE for Visual Studio Code: 3.9.0
- Enabled X‑CUBE‑AI 10.2.1
Files before and after the configuration of X-CUBE-AI are attached.
