CodeBlock/GCC
Posted: Wed May 18, 2011 11:14 pm
I try to run your "ARMCM3-STM32F103" example on codeblocks. The project will be opened, compiled and programmed on the chip. But I cant run it. The debugger ends in the while(true) of the _unhandled_exception(void). It seems to bee a stack/heap initializing problem.
codeblocks said:
Stack level 0, frame at 0xffffffe0:
pc = 0x80038e0 in _unhandled_exception (..\..\..\os\ports\GCC\ARMCMx\STM32\vectors.c:277); saved pc 0xfffffff8
called by frame at 0xffffffe0
source language c.
Arglist at 0xffffffe0, args:
Locals at 0xffffffe0, Previous frame's sp is 0xffffffe0
How can I resolve this problem?
The Keil version of this example run.
toolchain yagarto gcc 4.6.0
codeblocks said:
Stack level 0, frame at 0xffffffe0:
pc = 0x80038e0 in _unhandled_exception (..\..\..\os\ports\GCC\ARMCMx\STM32\vectors.c:277); saved pc 0xfffffff8
called by frame at 0xffffffe0
source language c.
Arglist at 0xffffffe0, args:
Locals at 0xffffffe0, Previous frame's sp is 0xffffffe0
How can I resolve this problem?
The Keil version of this example run.
toolchain yagarto gcc 4.6.0