This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with STM32L552 Nucleo startup crash

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.

.

Parents
  • 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

Reply
  • 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

Children