Clean CTL STM32 project ends in "HardFault_Handler"
Hi
I am trying to startup a CTL project on my STM32 value line board:
STM32F100RB, embedded ST link.
I am running the newest versions of Cross Studio, STM32 CPU support package V2.8, and STM32F10x std peripheral library update.
I start a new CTL project, and this compiles perfect.
The debugger runs OK, and I can program and run the application.
BUT: I can debug through the startup file, but when I hit the line with "b _start", it enters the "HardFault_Handler", and all the fun stops...
The application never runs, i.e. "Main" is never called.
I have searched anywhere for this problem, but cannot find any solution. I have tried to increase heap, stack and so on, but nothing helps.
I have not written a single line of code myself. It is only Cross Studio generated code.
I really want to get up and running with this setup. I have used Rowley with NXP ARM7 for years, but have never seen this. I now the Cortex interrupts are very different from ARM7, and it think the problem is caused by some interrupts not handled correctly.
Please, anyone ???
Thanks!
Kaare
Please sign in to leave a comment.
Comments
1 comment