How to write a GDB-STUB for AT91RM9200?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
How to write a GDB-STUB for AT91RM9200?

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
oklm
Guest





Posted: Wed Dec 14, 2005 5:15 pm    Post subject: How to write a GDB-STUB for AT91RM9200? Reply with quote

Hello,members!
I want to add a debugging stub on AT91RM9200 target,I've looked a
some information about it,but i don't know how to write that AT91-stub.c?
Introduction is:
On the host,
GDB already understands how to use this protocol; when everything els
is set up, you can simply use the `target remote' command .
On the target,
you must link with your program a few special-purpose subroutines tha
implement the GDB remote serial protocol. The file containing thes
subroutines is called a debugging stub. On certain remote targets, you ca
use an auxiliary program gdbserver instead of linking a stub into you
program.
The debugging stub is specific to the architecture of the remot
machine; for example, use `sparc-stub.c' to debug programs on SPAR
boards.

These working remote stubs are distributed with GDB:

i386-stub.c
For Intel 386 and compatible architectures.
m68k-stub.c
For Motorola 680x0 architectures.
sh-stub.c
For Hitachi SH architectures.
sparc-stub.c
For SPARC architectures.
sparcl-stub.c
For Fujitsu SPARCLITE architectures.

However,there are not for ARM.
MY target machine is Atmel's AT91RM9200; Operating system Kernel
Linux2.4.19-rmk7; Bootloader: U-boot0.4.8

Thank you very much!
oklm803@126.com
Please!
Back to top
Eric
Guest





Posted: Sat Dec 17, 2005 8:03 am    Post subject: Re: How to write a GDB-STUB for AT91RM9200? Reply with quote

check here:

http://openocd.berlios.de/web/

There's also some closed-source drivers, like this:

Windows only - for gnu gdb: OCDRemote

http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/wiggler_intro/wiggler_intro.pdf

"OCDRemote is a utility that listens on a TCP/IP port and translates
GDB monitor commands into Wiggler/Raven/usbDemon/mpDemon JTAG/BDM
commands. This lets you run your version of GDB which views our
interface device as a target monitor accessed via Ethernet."
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
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 vote in polls in this forum




VoIP Electronics Powered by phpBB