Hallo,
ich benutzte den MSPGCC 20060424, kann aber keine funktionierenden
Dateien für den msp430x449 erzeugen. Der msp430x435 oder der 1121 z.B.
funktionieren:
1 | C:\svn\hardware\IR-Transceiver_Test\Debug>msp430-gcc -IC:\mspgcc\msp430\include -mmcu=msp430x449 -g ../main.c -obin.elf
|
2 | C:\svn\hardware\IR-Transceiver_Test\Debug>msp430-gdb --command ..\gdb-target.ini
|
3 |
|
4 | GNU gdb 6.0
|
5 | Copyright 2003 Free Software Foundation, Inc.
|
6 | GDB is free software, covered by the GNU General Public License, and you are
|
7 | welcome to change it and/or distribute copies of it under certain conditions.
|
8 | Type "show copying" to see the conditions.
|
9 | There is absolutely no warranty for GDB. Type "show warranty" for details.
|
10 | This GDB was configured as "--host=i686-pc-cygwin --target=msp430".
|
11 | 0x0000f000 in ?? ()
|
12 | Erasing target flash - main... Erased OK
|
13 | ..\gdb-target.ini:10: Error in sourced command file:
|
14 | "bin.elf" is not an object file: File format not recognized
|
15 | (gdb) quit
|
16 | The program is running. Exit anyway? (y or n) y
|
Hier mit msp430x1121:
1 | C:\svn\hardware\IR-Transceiver_Test\Debug>msp430-gcc -IC:\mspgcc\msp430\include -mmcu=msp430x1121 -g ../main.c -obin.elf
|
2 | C:\svn\hardware\IR-Transceiver_Test\Debug>msp430-gdb --command ..\gdb-target.ini
|
3 |
|
4 | GNU gdb 6.0
|
5 | Copyright 2003 Free Software Foundation, Inc.
|
6 | GDB is free software, covered by the GNU General Public License, and you are
|
7 | welcome to change it and/or distribute copies of it under certain conditions.
|
8 | Type "show copying" to see the conditions.
|
9 | There is absolutely no warranty for GDB. Type "show warranty" for details.
|
10 | This GDB was configured as "--host=i686-pc-cygwin --target=msp430".
|
11 | 0x0000ffff in ?? ()
|
12 | Erasing target flash - main... Erased OK
|
13 | Loading section .text, size 0xf06 lma 0xf000
|
14 | Loading section .data, size 0xa lma 0xff06
|
15 | Loading section .vectors, size 0x20 lma 0xffe0
|
16 | Start address 0xf000, load size 3888
|
17 | Transfer rate: 1110 bits/sec, 388 bytes/write.
|
18 | (gdb) quit
|
19 | The program is running. Exit anyway? (y or n) y
|
Die main.c ist in beiden Versuchen identisch. Es wurde bei beiden
Versuchen die msp430x44x.h eingebunden.
Der Dump einer "kaputten" ELF-Datei sieht so aus:
1 | C:\svn\hardware\IR-Transceiver_Test\Debug>msp430-objdump --section-headers bin.elf
|
2 |
|
3 | bin.elf: file format elf32-msp430
|
4 |
|
5 | Sections:
|
6 | Idx Name Size VMA LMA File off Algn
|
7 | 0 .text 00000f08 00001100 00001100 000000b4 2**1
|
8 | CONTENTS, ALLOC, LOAD, READONLY, CODE
|
9 | 1 .data 0000000a 00000200 00002008 00000fbc 2**1
|
10 | CONTENTS, ALLOC, LOAD, DATA
|
11 | 2 .bss 00000006 0000020a 0000020a 000000b4 2**1
|
12 | ALLOC
|
13 | 3 .vectors 00000020 0000ffe0 0000ffe0 00000fc6 2**0
|
14 | CONTENTS, ALLOC, LOAD, READONLY, CODE
|
15 | 4 .stab 000041c4 00000000 00000000 00000fe8 2**2
|
16 | CONTENTS, READONLY, DEBUGGING
|
17 | 5 .stabstr 00003413 00000000 00000000 000051ac 2**0
|
18 | CONTENTS, READONLY, DEBUGGING
|
Ich habe MSPGCC bereits neu installiert, um versehentliche Änderungen an
irgendwelchen MSPGCC eigenen Dateien auszuschließen.
Was kann das sein?
Gruß Fabian