![Ronetix PEEDI User Manual Download Page 99](http://html1.mh-extra.com/html/ronetix/peedi/peedi_user-manual_1485040099.webp)
Using PEEDI
$ arm-elf-gdb myapp
To connect to the target (assuming that your PEEDI is set to use IP 192.168.1.10) type in the
console window:
(gdb) target remote 192.168.1.10:2000
This will tell GDB to connect to PEEDI using remote protocol. Now you can load your application
into target’s memory like this:
(gdb) load
This will load required application sections into target memory at addresses specified during the
link process. Users can manage these addresses using linker script files. While load command is
being executed, gdb sets PC to the entry point of the application. If you want to start execution from
another point or just the real entry point is different from the one set by gdb, you can manually set
PC to a desired location like this:
(gdb) set $pc=0x200040
If you want to make sure that your application starts with all interrupts disabled, you can do this:
(gdb) set $cpsr=0xD3
If your application utilizes stack and the startup code does not initialize the stack pointer you can do
this manually like this:
(gdb) set $sp=0x201000
Now your application is ready to be debugged:
gdb) continue
; start the application
PEEDI User’s Manual
99