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
CodeBlock/GCC
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: CodeBlock/GCC
Hi,
I found a problem in the CodeBlocks project (version 2.2.3), it includes the non-existent files i2c.c and i2c.h, after removing the files from the project the demo worked perfectly.
The bug will be fixed in version 2.2.4, thanks for reporting.
Giovanni
I found a problem in the CodeBlocks project (version 2.2.3), it includes the non-existent files i2c.c and i2c.h, after removing the files from the project the demo worked perfectly.
The bug will be fixed in version 2.2.4, thanks for reporting.
Giovanni