Have exported an project from STM32CubeMX to the Kiel ARM MDK. It builds with no problems, but hits the HardFault _Handler as it tries to jump to a cleared address, oxFFFFFFF, in R3 after hitting the __main and setting up the __scatterload assembler. I must need to set something , but cannot find any references in any of the help or application options. Note it is a 400K application and I have verified the stack and heap sizes in the STM32CubeMX.
.
The problem was caused by a bug in STM32CubeMX exporting the wrong flash and RAM size for the STM32552 Nucleo.
FIX:
In the Project->Options->Debug TAB “Use ST-Link Debugger” Settings->Flash Download TAB…you must change the Flash size from 0x40000 to 0x80000 and the ram from 0x1000 to 0x40000
Thanks for feeding back.
Has that been reported to ST?
Yep