Yahoo Groups archive

Lpc2000

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

Thread

Insight

Insight

2005-11-17 by fredvermejo

Hi! Everybody!

I�m using GNUARM 4.0.1 and when I run my code step by step (using
Insight, OCDRemote and a parallel wiggler), the steps showed at
Insight window don�t follow a logical sequence, the mark jumps to
lines (down and up) although the program works fine.
There is something wrong with my parameters to generate the code???
I already have used -O0 and -O2 and the result is the same.
Somebody have experienced something like that?

Thanks in advance.
Fred

Re: [lpc2000] Insight

2005-11-17 by Tom Walsh

fredvermejo wrote:

>Hi! Everybody!
>
>I\ufffdm using GNUARM 4.0.1 and when I run my code step by step (using
>Insight, OCDRemote and a parallel wiggler), the steps showed at
>Insight window don\ufffdt follow a logical sequence, the mark jumps to
>lines (down and up) although the program works fine.
>There is something wrong with my parameters to generate the code???
>I already have used -O0 and -O2 and the result is the same.
>Somebody have experienced something like that?
>
>  
>
Yes, but when I located _all_ the -O2 or -Os optimization compiler flags 
and changed them to -O0, everything worked as expected.  You have to 
remember that the ARM code uses conditional execution instructions.  
These opcodes conditionally will execute based on a condition flag 
(Zero, Carry, no Carry, etc).  While debugging this type of code, you 
will have counter-intuitive behavior.

Try turning on a mixed source + assembly view in the debugger and take a 
hard look at the underlying code.

TomW

>Thanks in advance.
>Fred
>
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>  
>


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

Re: [lpc2000] Insight

2005-11-17 by Tom Walsh

fredvermejo wrote:

>Hi! Everybody!
>
>I\ufffdm using GNUARM 4.0.1 and when I run my code step by step (using
>Insight, OCDRemote and a parallel wiggler), the steps showed at
>Insight window don\ufffdt follow a logical sequence, the mark jumps to
>lines (down and up) although the program works fine.
>There is something wrong with my parameters to generate the code???
>I already have used -O0 and -O2 and the result is the same.
>Somebody have experienced something like that?
>
>  
>

BTW, -O2 is nasty, it does terrific optimation of the code, use -O0 
instead to debug with.

TomW




>Thanks in advance.
>Fred
>
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>  
>


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

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.