contiki-ng / mspsim

Official MSPSim git repository
BSD 3-Clause "New" or "Revised" License
66 stars 83 forks source link

make test complains about missing MCU header #42

Closed voxspox closed 2 years ago

voxspox commented 9 years ago

Hi

'make test' fails while complaining about unknown MCU. For compilation -mmcu=msp430x1611 is given, but this (generic) cpu type is not listed in msp430.h and leads to the warning.

make test (cd tests && make) make[1]: Entering directory `.../src/mspsim/tests' msp430-gcc -I. -DWITH_ASCII -Wall -mmcu=msp430x1611 -g -Os -DAUTOSTART_ENABLE -c cputest.c -o cputest.co In file included from cputest.c:44:0: /usr/lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]

using this software: mspsim last version from git gcc version 4.6.3 20120301 (mspgcc LTS 20120406 unpatched) (GCC) Ubuntu 14.04 LTS

voxspox commented 9 years ago

changing MCU to msp430f1611 in tests/Makefile helped in my case.

cmorty commented 9 years ago

Can you make a pull-request?

nfi commented 2 years ago

Fixed in #57