EmbDev.net

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


von Min G. (minge519)


Rate this post
0 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
0 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
0 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
0 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
0 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
0 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!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.