mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
Now compiles without newlib. Refined the Makefile a little.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3674 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e96a085af8
commit
1dc42d1fcb
4 changed files with 135 additions and 15 deletions
27
gdb/README
27
gdb/README
|
|
@ -23,14 +23,23 @@ To debug using the serial port on the Jukebox, you need to do the following:
|
|||
2) Build or download a GDB SH1 cross debugger
|
||||
|
||||
3) Compile the GDB stub from the CVS "gdb" archive
|
||||
For Player models, just type:
|
||||
# make
|
||||
|
||||
For Recorder, type
|
||||
#make RECORDER=1
|
||||
|
||||
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
|
||||
as an argument along with the baud rate:
|
||||
|
||||
For Player:
|
||||
# sh-elf-gdb -b 38400 test.elf
|
||||
|
||||
For Recorder:
|
||||
# sh-elf-gdb -b 115200 test.elf
|
||||
|
||||
6) In GDB, type:
|
||||
|
||||
(gdb) target remote /dev/ttyS0
|
||||
|
|
@ -58,13 +67,13 @@ To debug using the serial port on the Jukebox, you need to do the following:
|
|||
|
||||
8) You're set. Now try to set a breakpoint and run:
|
||||
|
||||
(gdb) b 22
|
||||
Breakpoint 1 at 0x90182c6: file led.c, line 14.
|
||||
(gdb) b main
|
||||
Breakpoint 1 at 0x9011b2a: file main.c, line 192.
|
||||
(gdb) c
|
||||
Continuing.
|
||||
|
||||
Breakpoint 2, main () at led.c:15
|
||||
15 SSR1 &= ~(SCI_RDRF | SCI_ORER | SCI_PER | SCI_FER);
|
||||
Breakpoint 1, main () at main.c:192
|
||||
192 app_main();
|
||||
(gdb)
|
||||
|
||||
Good luck!
|
||||
|
|
@ -73,8 +82,14 @@ To debug using the serial port on the Jukebox, you need to do the following:
|
|||
Technical details:
|
||||
|
||||
As for now, the GDB stub occupies the memory from 0x900000 up to
|
||||
0x9018000. This will change.
|
||||
0x9018000.
|
||||
|
||||
Compile and link your test program at 0x9018000 and up, and it will work.
|
||||
|
||||
The baud rate is 38400, and the settings are 8N1.
|
||||
The baud rate is 38400 for Player, 115200 for Recorder, and the settings
|
||||
are 8N1.
|
||||
|
||||
Note that you may have to change the ATA I/O address in the ATA_CONTROL
|
||||
macro in sh-stub.c. go to Menu->Debug (keep out)->View HW info to find out.
|
||||
|
||||
Linus Nielsen Feltzing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue