Problem of debugging with eclipse + JLinkGDBServer

OP #1171447
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
#1171449
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
#1171450
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 :)

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.