Возникло сомнение, что Insight сам умеет в ПЗУ отлаживать. В ссылке об этом сказано:
http://rod.info/arm.html
может, и не так все. У меня пока работает только отладка в ОЗУ.
(gdb) target remote localhost:8888
0x00000000 in ?? ()
(gdb) lo simple.elf
Loading section .text, size 0x188 lma 0x40000000
Start address 0x40000000, load size 392
Transfer rate: 3136 bits/sec, 130 bytes/write.
(gdb) symbol-file simple.elf
Warning: the current language does not match this frame.
(gdb) b main
Breakpoint 1 at 0x40000128: file led.c, line 22.
(gdb) c
Breakpoint 1, main () at led.c:22
(gdb) next
(gdb) next
(gdb) next
(gdb) next
(gdb) next
(gdb) next
delay (d=200000) at led.c:14
Program received signal SIGTRAP, Trace/breakpoint trap.
delay (d=88158) at led.c:14
0x4000017c in main () at led.c:30
No symbol "d" in current context.
No symbol "d" in current context.
(gdb) disassemble
Dump of assembler code for function main:
0x4000011c : mov r12, sp
0x40000120 : stmdb sp!, {r4, r5, r6, r7, r11, r12, lr, pc}
0x40000124 : sub r11, r12, #4 ; 0x4
0x40000128 : mov r3, #-536870904 ; 0xe0000008
0x4000012c : add r3, r3, #163840 ; 0x28000
0x40000130 : mov r2, #255 ; 0xff
0x40000134 : str r2, [r3]
0x40000138 : ldr r7, [pc, #64] ; 0x40000180
0x4000013c : mov r6, #-536870908 ; 0xe0000004
0x40000140 : add r6, r6, #163840 ; 0x28000
0x40000144 : mov r5, #128 ; 0x80
0x40000148 : mov r4, #199680 ; 0x30c00
0x4000014c : add r4, r4, #320 ; 0x140
0x40000150 : ldr r3, [r7]
0x40000154 : add r3, r3, #1 ; 0x1
0x40000158 : str r3, [r7]
0x4000015c : str r5, [r6]
0x40000160 : mov r0, r4
0x40000164 : bl 0x4000010c
0x40000168 : mov r3, #-536870900 ; 0xe000000c
0x4000016c : add r3, r3, #163840 ; 0x28000
0x40000170 : str r5, [r3]
0x40000174 : mov r0, r4
0x40000178 : bl 0x4000010c
0x4000017c : b 0x40000150
0x40000180 : andmi r8, r0, r0
End of assembler dump.
Breakpoint 2, delay (d=200000) at led.c:14
Breakpoint 2, delay (d=199999) at led.c:14
Breakpoint 2, delay (d=199998) at led.c:14
Breakpoint 2, delay (d=199997) at led.c:14
Breakpoint 2, delay (d=199996) at led.c:14
http://groups.yaho …p/lpc2000/message/1933