Page 1 of 1

CodeBlock/GCC

Posted: Wed May 18, 2011 11:14 pm
by Raig
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

Re: CodeBlock/GCC

Posted: Thu May 19, 2011 7:29 am
by Giovanni
Hi Raig,

I will give it a try in the evening then post here.

Giovanni

Re: CodeBlock/GCC

Posted: Thu May 19, 2011 7:11 pm
by Giovanni
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