Как запустить отладку в mspgcc-20070216? Даже leds не могу запустить в режиме отладки. Впечатление такое, как будто не хватает какого-то параметра [+] Отладка не запускается в таких отладчиках под WinXP msp430-gdb, msp430-insight, eclipse.
Параметры компиляции:
msp430-gcc -mmcu=msp430x2013 -O0 -Wall -g -c -o main.o main.c
msp430-gcc -mmcu=msp430x2013 -o leds.elf main.o
msp430-objcopy -O ihex leds.elf leds.a43
msp430-objdump -dSt leds.elf >leds.lst
gdb.ini:
set remoteaddresssize 64
set remotetimeout 999999
target remote localhost:3333
set download-write-size 2000
set remote memory-write-packet-size 2000
set remote memory-write-packet-size fixed
monitor erase all
load leds.elf
Сеансы работы с msp430-gdb:
1) msp430-gdb leds.elf:
...
This GDB was configured as "--host=i686-pc-cygwin --target=msp430"...
0x0000f800 in ?? ()
Resetting target - all methods...done
Erasing target flash - all... Erased OK
Loading section .text, size 0x10c lma 0xf800
Loading section .vectors, size 0x20 lma 0xffe0
Start address 0xf800, load size 300
Transfer rate: 2400 bits/sec, 37 bytes/write.
(gdb) list
15 nop();
16 }
17 }
18
19 /**
20 Main function with some blinking leds
21 */
22 int main(void) {
23 int i;
24 int o = 0;
(gdb) step
Cannot find bounds of current function
(gdb)
2) msp430-gdb:
...
This GDB was configured as "--host=i686-pc-cygwin --target=msp430".
0x0000f800 in ?? ()
Resetting target - all methods...done
Erasing target flash - all... Erased OK
Loading section .text, size 0x10c lma 0xf800
Loading section .vectors, size 0x20 lma 0xffe0
Start address 0xf800, load size 300
Transfer rate: 2400 bits in <1 sec, 37 bytes/write.
(gdb) list
No symbol table is loaded. Use the "file" command.
(gdb) step
Cannot find bounds of current function
(gdb)
Insight и Eclipse выдают:
An internal GDB error was detected. This may make further debugging unreliable. Continue this debugging session?
или
No symbol table is loaded. Use the "file" command.