Forum: Compiler & IDEs MSPGCC kompiliert nicht für msp430x449


von Fabian W. (fabianwolter)


Lesenswert?

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

von Christian R. (supachris)


Lesenswert?

Mal probiert, die aktuelle Version des GCC zu benutzen? Die alten hatten 
recht viele Bugs. (Die neue sicherlich auch, man muss nur suchen...)

von Fabian W. (fabianwolter)


Lesenswert?

Ich habe nun die Version vom 20080605 auf einem anderen Rechner unter 
Vista (vorher XP) ausprobiert: Der Fehler tritt weiterhin reproduzierbar 
auf. Binaries die für den MSP430x449 kompiliert werden produzieren obige 
Fehlermeldung, alle anderen funktionieren.

Ich vermute fast, dass es an irgendeiner generellen Einstellung auf 
meiner Seite liegt, denn der 449 ist ja nun kein ganz seltener Typ. Das 
müsste doch bereits jemand aufgefallen sein?

Gruß Fabian

von Eitum (Gast)


Lesenswert?

Gibts inzwischen eine Lösung hab das gleiche Problem beim MSp430FG437 
Programm wird geladen aber bekomm immer wenn cihs laufen lassen möchte:

mi_cmd_var_create: unable to create variable object

beim übertragen kommt:

target remote localhost:3333
0x0000ffff in ?? ()

wenn ich das mit den EInstellungen für den MSP430F155 mache steht dort:

target remote localhost:3333
0x0000ffff in InterruptVectors ()

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.