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

I have un big problem with STM32F4 (Cortex-M4) Project.

there was one year, I make a project C++ with 6918 Luminary (a Cortex-M3, now TI) without any problem.
Todays, I want to create the same project for STM32F4. But, at the start, the Heap and the Stack are not properly initialized. The first create object finished in a exeception "UsageFault_Handler". I do not understand why !

Please, help me.

I'm not talking about the simulation mode of STM32F4 is not working.

excuse me for my english. I am french.
Best Regard
Jean-Francois

Parents Reply Children
  • Hello,
    and thank for your answer.

    I simply created a new project with the ST32F407VG for the ST’s demo board (MB997B).
    I use the automatic file created by µVision 4.23 : The name is “startup_stm32f4xx.s”
    But I think I found my first problem: should not create object in function "SystemInit", because the Heap is not yet initialized. In The Main is ok.
    But the simulation mode : don't work. It started at 0x00000000, but the code is at 0x08000000.