Hello,
I’m new to the open source tools area. I’m having difficulty getting to the point where I can debug an application. I was hoping that Olimex was going to provide an example for the LPC2129. If anyone has a hello world or blink a LED example for the following tool set and the LPC2129, I’d really appreciate it.
Can anyone shed some light on what file or tool drives the gdb configuration/interface. Note the bold line in the console output below indicates what I think is the first problem that I need to resolve; however, I don’t know where the lever is to fix it. Any hints would be greatly appreciated.
Tool set:
-Olimex LPC-P2129
-Olimex ARM-USB-TINY
+Olimex for dummies CD (I guess I should have gotten the one for complete idiots)
-Yagarto (from the CD)
+Eclipse
I am using the following run commands:
monitor soft_reset_halt
monitor arm7_9 sw_bkpts enable
break main
load
continue
I get the following console output in the debugger:
1^done
(gdb)
2-gdb-set width 0
2^done
3-gdb-set height 0
(gdb)
3^done
(gdb)
4-interpreter-exec console echo
4^done
(gdb)
5-gdb-show prompt
5^done,value="(gdb) "
(gdb)
6-environment-directory C:/gccfd/projects/Yagarto
6^done,source-path=“C:/gccfd/projects/Yagarto;$cdir;$cwd”
(gdb)
7 info threads
&“info threads\n”
&“No registers.\n”
7^error,msg=“No registers.”
(gdb)
8-data-list-register-names
8^done,register-names=[“r0”,“r1”,“r2”,“r3”,“r4”,“r5”,“r6”,“r7”,“r8”,“r9”,“r10”,“r11”,“r12”,“sp”,“lr”,“pc”,“f0”,“f1”,“f2”,“f3”,“f4”,“f5”,“f6”,“f7”,“fps”,“cpsr”]
(gdb)
9-break-insert main.out:main
&"No source file named main.out.\n"9^done
No source file named main.out.
(gdb)
10-stack-list-frames
&“No registers.\n”
No registers.
10^error,msg=“No registers.”
(gdb)
11 target remote localhost:3333
target remote localhost:3333
&“target remote localhost:3333\n”
~“0x000002e0 in ?? ()\n”
0x000002e0 in ?? ()
11^done
(gdb)
12 monitor soft_reset_halt
monitor soft_reset_halt
&“monitor soft_reset_halt\n”
@“requesting target halt and executing a soft reset\n”
requesting target halt and executing a soft reset
12^done
(gdb)
13 monitor arm7_9 sw_bkpts enable
monitor arm7_9 sw_bkpts enable
&“monitor arm7_9 sw_bkpts enable\n”
@“software breakpoints enabled\n”
software breakpoints enabled
13^done
(gdb)
14 break main
&“break main\n”
break main
~“Breakpoint 1 at 0x40000398: file main.c, line 31.\n”
Breakpoint 1 at 0x40000398: file main.c, line 31.
14^done
(gdb)
15-break-list
15^done,BreakpointTable={nr_rows=“1”,nr_cols=“6”,hdr=[{width=“3”,alignment=“-1”,col_name=“number”,colhdr=“Num”},{width=“14”,alignment=“-1”,col_name=“type”,colhdr=“Type”},{width=“4”,alignment=“-1”,col_name=“disp”,colhdr=“Disp”},{width=“3”,alignment=“-1”,col_name=“enabled”,colhdr=“Enb”},{width=“10”,alignment=“-1”,col_name=“addr”,colhdr=“Address”},{width=“40”,alignment=“2”,col_name=“what”,colhdr=“What”}],body=[bkpt={number=“1”,type=“breakpoint”,disp=“keep”,enabled=“y”,addr=“0x40000398”,func=“main”,file=“main.c”,fullname=“C:/gccfd/projects/Yagarto/main.c”,line=“31”,times=“0”}]}
(gdb)
16 load
load
&“load\n”
~“Loading section .text, size 0x500 lma 0x40000000\n”
Loading section .text, size 0x500 lma 0x40000000
10+download,{section=“.text”,section-size=“1280”,total-size=“4178”}
~“Start address 0x40000040, load size 1280\n”
Start address 0x40000040, load size 1280
~“Transfer rate: 10240 bits in <1 sec, 320 bytes/write.\n”
Transfer rate: 10240 bits in <1 sec, 320 bytes/write.
16^done
(gdb)
17 continue
continue
&“continue\n”
Thanks!