Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] gcc problem

2005-07-18 by 42Bastian Schick

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)
1) Do you use this flag for all stages (i.e. compile,assemble,link) ?
2) Do you have the .glue7 and .glue7t sections in your linker script ?


-- 
42Bastian Schick

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.