Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Eclipse and gdbserver
PostPosted: Thu Sep 22, 2011 3:42 pm 
Offline

Joined: Wed Sep 21, 2011 3:41 pm
Posts: 5
Hello folks,

I am tryin to setup the dev environment for at91sam7x256-ek, using a popular "getting started" document. I've gotten sam-ba and gdbserver setup as external tools in eclipse. Problem is, after I've burned the program onto flash using sam-ba, when I try to debug using gdbserver, I get the following errors:
"localhost unknown",
"monitor: not known for this target", etc.
So basically gdbserver cannot connect to the board. But when I try arm-none-eabi-gdb from the command line, it connects. Any clue as to what I may be doing wrong? I appreciate your inputs.


Top
 Profile  
 
 Post subject: Re: Eclipse and gdbserver
PostPosted: Thu Sep 22, 2011 4:39 pm 
Offline

Joined: Tue Jul 13, 2010 12:54 pm
Posts: 29
Could you be a bit more specific. Do you use openocd for on chip debugging, JTAG for connecting etc.

Eclipse Version? CDT Version?

SAMBA is normally used just to program the application into flash over the Debug port, or USB.

You need to connect a JTAG device to your development board to do on-chip debugging. Software like OpenOCD will then act as the "GDB server" with arm-none-eabi-gdb the client that connects to the server. The port that will be used for debugging should be specified in the openOCD configuration file.

If you are using eclipse and its CDT tools GDB Hardware debugging, deselect the remote target at the debugger window, enter arm-none-eabi-gdb as the GDB command. Startup OpenOCD from command-line, using eclipse external tools etc. Then run the debug command. (The "target remote localhost:xxxx" should be part of your startup script commands)

Hopefully there is something that helps in my ramblings, for me to talk more sense I need more specifics...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron