msp430f149: Kann nicht debuggen

OP #4933127
Lesenswert?

Servus zusammen,

kennt noch jemand den MSP430f149? Ich möchte aus mehr oder weniger 
nostalgischen Gründen ein altes Projekt wieder weiterbearbeiten und 
scheitere am Debuggen. So sieht's aus:
1
msp430-gcc -mmcu=msp430f149 -O0 -Wall -Werror -ggdb -std=gnu99   -c -o main.o main.c
2
msp430-gcc -mmcu=msp430f149 -O0 -Wall -Werror -ggdb -std=gnu99 -o uart-test.elf main.o -lm
3
msp430-objcopy -O ihex uart-test.elf uart-test.a43
4
msp430-objdump -dSt uart-test.elf >uart-test.lst

Compiliert schon mal mit dem neuen msp430-gcc (GCC) 4.6.3 20120301 
(mspgcc LTS 20120406 unpatched). Könnte schlimmer sein. Jetzt debuggen. 
Nachdem ich erst mal eine libmsp430 für 64bitter basteln musste, geht 
auch mspdebug:
1
markus@haktar % mspdebug tilib
2
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
3
Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com>
4
This is free software; see the source for copying conditions.  There is NO
5
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
6

7
MSP430_GetNumberOfUsbIfs
8
MSP430_GetNameOfUsbIf
9
Found FET: ttyACM0
10
MSP430_Initialize: ttyACM0
11
Firmware version is 4294967295
12
MSP430_VCC: 3000 mV
13
MSP430_OpenDevice
14
MSP430_GetFoundDevice
15
Device:  (id = 0x0000)
16
0 breakpoints available
17
MSP430_EEM_Init
18
Chip ID data: 02 00
19

20
Available commands: [...]
21

22
(mspdebug) prog uart-test.elf
23
Erasing...
24
Programming...
25
Writing  492 bytes at 1100 [section: .text]...
26
Writing   24 bytes at 12ec [section: .data]...
27
Writing   32 bytes at ffe0 [section: .vectors]...
28
Done, 548 bytes total

\o/ sieht gut aus :)
1
(mspdebug)  gdb
2
Bound to port 2000. Now waiting for connection

Jetzt den msp430-gdb starten:
1
markus@haktar % msp430-gdb main.o
2
[blabla]
3
Reading symbols from /home/markus/projects/msp-uart-test/main.o...done.
4
(gdb) target remote localhost:2000
5
Remote debugging using localhost:2000
6
0x000051c0 in ?? ()
7
(gdb) break main
8
Entry point address is not known.
9
(gdb) continue
10
Continuing.
11
^C
12
Program received signal SIGTRAP, Trace/breakpoint trap.
13
0x00005228 in ?? ()

Mist. Kann mir hier jemand weiterhelfen?

Vielen Dank,
Markus

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren