Hi,
I installed the patch msp430x5529 on my computer because I want to compile
the Contiki OS. I use a msp430f5529.
When I compile the Contiki OS, I get the following errors:
nod...@nodeus-desktop:~/Bureau/contiki-2.4/examples/sky$ make TARGET=sky
/home/nodeus/Bureau/msp430/usr/local/bin/msp430-gcc -DCONTIKI_TARGET_SKY
-Wall -mmcu=msp430x5529 -g -Os -I. -I../../platform/sky/.
-I../../platform/sky/dev -I../../platform/sky/apps -I../../platform/sky/net
-I../../cpu/msp430/. -I../../cpu/msp430/dev -I../../core/dev
-I../../core/lib -I../../core/net -I../../core/net/mac -I../../core/net/rime
-I../../core/net/routing -I../../core/sys -I../../core/cfs -I../../core/ctk
-I../../core/lib/ctk -I../../core/loader -I../../core/. -MMD -c
../../core/net/uip-fw.c -o obj_sky/uip-fw.o
In file included from
/home/nodeus/Bureau/msp430/usr/local/msp430/include/io.h:160,
from ../../cpu/msp430/rtimer-arch.h:44,
from ../../core/sys/rtimer.h:148,
from ../../core/contiki.h:46,
from ../../core/net/tcpip.h:70,
from ../../core/net/uip.h:121,
from ../../core/net/uip-fw.c:60:
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1382: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1383: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1384: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1385: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1386: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1387: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1390: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1391: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1392: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1393: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1396: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1397: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1398: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1399: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1400: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1401: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1402: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1403: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1406: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1407: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1408: syntax error before numeric constant
/home/nodeus/Bureau/msp430/usr/local/msp430/include/msp430x55x9_newversion.h
:1409: syntax error before numeric constant
make: *** [obj_sky/uip-fw.o] Erreur 1
Here are the problematic lines in the file msp430x55x9_newversion.h:
N° Line //Timer.h
1380 #include <msp430new/Timer.h>
1381 #define TIMERA0BASE 0x0340
1382 BUILDTIMER(A, 0, TIMERA0BASE);
1383 BUILDTIMERCHANNEL(A, 0, 0, TIMERA0BASE);
1384 BUILDTIMERCHANNEL(A, 0, 1, TIMERA0BASE);
1385 BUILDTIMERCHANNEL(A, 0, 2, TIMERA0BASE);
1386 BUILDTIMERCHANNEL(A, 0, 3, TIMERA0BASE);
1387 BUILDTIMERCHANNEL(A, 0, 4, TIMERA0BASE);
1388
1389 #define TIMERA1BASE 0x0380
1390 BUILDTIMER(A, 1, TIMERA1BASE);
1391 BUILDTIMERCHANNEL(A, 1, 0, TIMERA1BASE);
1392 BUILDTIMERCHANNEL(A, 1, 1, TIMERA1BASE);
1393 BUILDTIMERCHANNEL(A, 1, 2, TIMERA1BASE);
1394
1395 #define TIMERB0BASE 0x03C0
1396 BUILDTIMER(B, 0, TIMERB0BASE);
1397 BUILDTIMERCHANNEL(B, 0, 0, TIMERB0BASE);
1398 BUILDTIMERCHANNEL(B, 0, 1, TIMERB0BASE);
1399 BUILDTIMERCHANNEL(B, 0, 2, TIMERB0BASE);
1400 BUILDTIMERCHANNEL(B, 0, 3, TIMERB0BASE);
1401 BUILDTIMERCHANNEL(B, 0, 4, TIMERB0BASE);
1402 BUILDTIMERCHANNEL(B, 0, 5, TIMERB0BASE);
1403 BUILDTIMERCHANNEL(B, 0, 6, TIMERB0BASE);
1404
1405 #define TIMERA2BASE 0x0400
1406 BUILDTIMER(A, 2, TIMERA2BASE);
1407 BUILDTIMERCHANNEL(A, 2, 0, TIMERA2BASE);
1408 BUILDTIMERCHANNEL(A, 2, 1, TIMERA2BASE);
1409 BUILDTIMERCHANNEL(A, 2, 2, TIMERA2BASE);
Do you know this error?
Best regards
Aurelien