|
|
Rockbox mail archiveSubject: Serial gdb debugging on the JukeboxFrom: Nielsen Linus (ext) (Linus.Nielsen_at_elema.siemens.se) Date: 2002-04-16
Hello fellow rockers!
I have commited a first alpha of the GDB stub in the CVS. It allows you to
Good luck!
/Linus
----------------------------------------------------------------------------
Debugging the Archos Jukebox
To debug using the serial port on the Jukebox, you need to do the following:
1) Connect the serial port to the PC. This is best done with the "serial
2) Build or download a GDB SH1 cross debugger
3) Compile the GDB stub from the CVS "gdb" archive
4) Copy the newly built ARCHOS.MOD to the Jukebox.
5) Start the Jukebox and fire up the GDB with the elf file you want to debug
# sh-elf-gdb -b 38400 test.elf
6) In GDB, type:
(gdb) target remote /dev/ttyS0
GDB should answer with a message like:
Remote debugging using /dev/ttyS0
7) Load the code from the elf file you specified on the command line:
(gdb) load
GDB should answer like this:
Loading section .text, size 0x6b00 lma 0x9018000
8) You're set. Now try to set a breakpoint and run:
(gdb) b 22
Breakpoint 2, main () at led.c:15
Good luck!
Technical details:
As for now, the GDB stub occupies the memory from 0x900000 up to
Compile and link your test program at 0x9018000 and up, and it will work.
The baud rate is 38400, and the settings are 8N1.
Page was last modified "Jan 10 2012" The Rockbox Crew |