----- Original Message -----
From: "42Bastian Schick" <bastian42@...>
To: <lpc2000@yahoogroups.com>
Sent: Monday, July 18, 2005 5:08 PM
Subject: Re: [lpc2000] gcc problem
> Michal Krestan <krestan@...> schrieb am Mon, 18 Jul 2005 16:22:11 +0200:
>
>>
>> I'm using LPC2106 in my application with gcc 4.0.0. I've compiled all my
>> sources in ARM mode and it works fine, but for IAP routine call I had to
>> use -mthumb-interwork flag for gcc. After this, my application will
>> crash in few sec (not on IAP call, but inside IRQ function). The problem
>> is in IRQ routine. When I'll make call of function inside ISR, gcc will
>> generate wrong code without returning address. If i'll not use
>> -mthumb-interwork flag, the code is compiled correctly.
>
> 0) Why do you use ARM mode ? (IMHO it has no benefit despite some rare
> situations)
I've started my project in ARM mode by modification of example code for
LPC2106 and it still remains in my project:-)
> 1) Do you use this flag for all stages (i.e. compile,assemble,link) ?
yes
> 2) Do you have the .glue7 and .glue7t sections in your linker script ?
yes, I'm using default ld and makefile from examples included in WinARM gcc.
I've only removed comment character before mthumb-interwork in makefile and
after this modification my code will crash.
Michal
>
>
> --
> 42Bastian Schick
>
>Message
Re: [lpc2000] gcc problem
2005-07-18 by Michal Krestan
Attachments
- No local attachments were found for this message.