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.
.
Yes, my mistake.
Will clarify:
We have exported our 400K program from the STM32CubeMX to the iAR IDE and the Stm32CubeIDE and the program runs.
When we do the same steps and export to the ARM MDK, it fails as described.
So, going back a step, have you successfully exported a simple blinky from Cube to uVision?
Again, Yes.
So maybe start with that base, and gradually merge-in sections of your big application? That would make it easier to isolate when the fault occurs and, thus, how to fix it...