Hi,
I'm testing a litle example using the msp430f2132 and the compiler send
a some error's in tlv.h
Searching a solution a find a diferent version of this file (tlv.h) in
the sourceforge site, I have downloaded in the install package of the
compiler for win32 and the version of the files is not the same.
Where can I download the lastest working version of the mspgcc for win32?
The program is:
File led_flasher.c:
#include "led_flasher_hrw.h"
int main(void)
{
int i;
WDTCTL = WDTPW|WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
P1OUT = 0x00;
for (;;)
{
P1OUT ^= 0x01; // Toggle P1.0 using
exclusive-OR
i = 50000; // Delay
do (i--);
while (i != 0);
}
}
File led_flasher.h
#ifndef led_flasher_hrw
#define led_flasher_hrw
#include <io.h>
#include <signal.h>
#include <iomacros.h>
#endif
The command line used to compile and the output is:
C:\msp>msp430-gcc -mmcu=msp430x2132 led_flasher_main.c -o led_flasher
In file included from C:/MSPGCC/msp430/include/msp430x21x2.h:41,
from C:/MSPGCC/msp430/include/io.h:78,
from led_flasher_hrw.h:4,
from led_flasher_main.c:20:
C:/MSPGCC/msp430/include/msp430/tlv.h:72: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:84: unnamed fields of type other
than stru
ct or union are not allowed
C:/MSPGCC/msp430/include/msp430/tlv.h:84: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:85: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:86: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:87: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:88: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:89: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:90: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:91: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:93: syntax error before '}' token
C:/MSPGCC/msp430/include/msp430/tlv.h:101: unnamed fields of type other
than str
uct or union are not allowed
C:/MSPGCC/msp430/include/msp430/tlv.h:101: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:102: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:103: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:104: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:105: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:106: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:107: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:108: syntax error before numeric
constant
C:/MSPGCC/msp430/include/msp430/tlv.h:110: syntax error before '}' token
C:/MSPGCC/msp430/include/msp430/tlv.h:124: syntax error before
"empty_tagd_t"
C:/MSPGCC/msp430/include/msp430/tlv.h:126: syntax error before "adc12_1"
C:/MSPGCC/msp430/include/msp430/tlv.h:127: syntax error before "dco_30"
C:\msp>
Thank's
Sergio