Open asl opened 5 years ago
Build Contiki with clang under sky
target:
$ git clone https://github.com/contiki-os/contiki --recursive
clang
, msp430-elf-ar
and msp430-elf-gcc
should be in PATH$ cd examples/sky
PATH=/path/to/llvm/bin:/path/to/msp430-gcc/bin:$PATH \
make TARGET=sky CLANG=1 \
SUPPORT_FILES=/path/to/support/files \
LIBC_INCLUDE_PATH=/path/to/libc/includes/include
Build should finish successfully with no warnings.
hello_world, collect, netperf, servreg, sky-shell, sky-shell-webserver are compiled successfully, but failed to be linked (not fit into memory).
Note: #2, #5, #15, #47 and 'argument' approach from #59 were applied.
Run Contiki examples on Cooja simulator:
Ensure that the repo was cloned with --recursive option.
Install Oracle JDK and ant
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
Some help, how to install JDK
Workaround the following issue
Run ant run
and read the nice doc how to create a simulation.
The following list of examples should start and work fine:
Other examples do not fit into memory.
printf
(i.e. output) doesn't work as expected if an example linked against libc from msp430-gcc toolchain.
http://www.contiki-os.org/