Yahoo Groups archive

Lpc2000

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

Thread

ARM/ Thumb exception

ARM/ Thumb exception

2006-05-25 by ‚³‚³‚«‚悵‚¦‚³‚ñ‚̃X

Hi All,

Recently, I have encountered a funny issue.
Currently, I have enabled support call between ARM &
thumb instruction & complie thumb code & enable 
ARM/ Thumb inter-working for the LPC2138 code.

When the LPC2138 run for 10~20 minutes, I would encounter
exception. If I used the same code & select compile 
thumb code for some of the source files,
LPC2138 will not encounter the above exception.
(I have checked the stack, it seems to be ok.
 The exception is caused by accessing illegal data
 area) 

After adding some routines to the above code, I start
to get run time exception again, this time I disable the
"compile thumb code" for the above source files.
The exception will not occur.

Strange...
Does anyone encounter..the above problem?
Please advise me what is the next best 
step to do..  (:-|)

Thank you.

Best regards,
Octavius

Re: [lpc2000] ARM/ Thumb exception

2006-05-25 by Tom Walsh

\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u60b5\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0303X\ufffdE\ufffdB\ufffd[\ufffd\ufffd\ufffd[ wrote:

>Hi All,
>
>Recently, I have encountered a funny issue.
>Currently, I have enabled support call between ARM &
>thumb instruction & complie thumb code & enable 
>ARM/ Thumb inter-working for the LPC2138 code.
>
>When the LPC2138 run for 10~20 minutes, I would encounter
>exception. If I used the same code & select compile 
>thumb code for some of the source files,
>LPC2138 will not encounter the above exception.
>(I have checked the stack, it seems to be ok.
> The exception is caused by accessing illegal data
> area) 
>
>After adding some routines to the above code, I start
>to get run time exception again, this time I disable the
>"compile thumb code" for the above source files.
>The exception will not occur.
>
>  
>
I think the first question is what compiler are you using, what version, 
are you using any optimization (compile for speed, optimize for size)?

TomW


-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Re: ARM/ Thumb exception

2006-05-25 by ‚³‚³‚«‚悵‚¦‚³‚ñ‚̃X

Dear TomW,

Currently, I am using Keil 3.12a/ GNU tools(Cygnus)  
(SARM.DLL ver 1.25 & DARMP.DLL ver1.09)

>>are you using any optimization (compile for speed, optimize for 
Currently, no optimization is selected.

Best regards,
Octavius


--- In lpc2000@yahoogroups.com, ‚³‚³‚«‚悵‚¦‚³‚ñ‚̃XƒEƒB[
<octcath@...> wrote:
Show quoted textHide quoted text
>
> Hi All,
> 
> Recently, I have encountered a funny issue.
> Currently, I have enabled support call between ARM &
> thumb instruction & complie thumb code & enable 
> ARM/ Thumb inter-working for the LPC2138 code.
> 
> When the LPC2138 run for 10~20 minutes, I would encounter
> exception. If I used the same code & select compile 
> thumb code for some of the source files,
> LPC2138 will not encounter the above exception.
> (I have checked the stack, it seems to be ok.
>  The exception is caused by accessing illegal data
>  area) 
> 
> After adding some routines to the above code, I start
> to get run time exception again, this time I disable the
> "compile thumb code" for the above source files.
> The exception will not occur.
> 
> Strange...
> Does anyone encounter..the above problem?
> Please advise me what is the next best 
> step to do..  (:-|)
> 
> Thank you.
> 
> Best regards,
> Octavius
>

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.