EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem of debugging with eclipse + JLinkGDBServer


von Min G. (minge519)


Rate this post
useful
not useful
Hi All,

I got a problem of debugging with eclipse + JLinkGDBServer,

I used to work. But when I just added 4 lines code (The code has pass
debugging), then I can not run step by step.

When I download code and the cursur stop on the first line of my main
file.
But when I run Step Over or Step Into, it never came back.

If I took the 4 lines code, it works. The cod has not run to the 4 lines
yet.

BTW, I found the SP changes when I download the same code twice.
Sometimes it is 0x4f94, sometimes it is 0x20ff94. I always run in
RAM_RUN mode.

I do not know what is the problem. Could naybody help me? Thanks.

Min Ge

von Clifford S. (clifford)


Rate this post
useful
not useful
This thread from a few weeks ago suggests that Eclipse may not work
correctly with the WinARM GDB build.
http://en.mikrocontroller.net/topic/67396

Perhaps you need one of these:
http://www.cafepress.com/insaniteeshirts/1417922

Have you tried using the WinARM Insight debugger? If that fails as well,
then the problem may not them be with Eclipse.

Clifford

von Clifford S. (clifford)


Rate this post
useful
not useful
Min Ge wrote:
> BTW, I found the SP changes when I download the same code twice.
> Sometimes it is 0x4f94, sometimes it is 0x20ff94. I always run in
> RAM_RUN mode.

The ARM has separate SP registers for each processor mode. This will
happen if for example a data abort exception has occurred, and the
processor switches to ABORT mode. I have seen JTAG problems cause a
processor to be in an 'Undefined' mode state before.

Clifford

von Jim K. (ancaritha)


Rate this post
useful
not useful
Clifford Slocombe wrote:
> This thread from a few weeks ago suggests that Eclipse may not work
> correctly with the WinARM GDB build.
> http://en.mikrocontroller.net/topic/67396
>
> Perhaps you need one of these:
> http://www.cafepress.com/insaniteeshirts/1417922
>
> Have you tried using the WinARM Insight debugger? If that fails as well,
> then the problem may not them be with Eclipse.
>
> Clifford

Woah... wait what?  WinARM Insight debugger?  Where can I get one of
these magical toys?  Today I installed Cygwin and i'm installing GDB
insight right now, but if I could get a magical WinARM one that'd be
fantastic :)

von Jim K. (ancaritha)


Rate this post
useful
not useful
Hey, remember that time I asked about WinARM Insight?  Yea, google
reminded me that I am idiot, because its in the WinARM Readme :)

von Clifford S. (clifford)


Rate this post
useful
not useful
Jim Kaz wrote:
> Hey, remember that time I asked about WinARM Insight?  Yea, google
> reminded me that I am idiot, because its in the WinARM Readme :)

Yes, find it in the utils folder. The whole point of WinARM is surely so
you can avoid all the Cygwin nonsense!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.