From 00959b891c4e5c77534b82349afebbe23d5eee73 Mon Sep 17 00:00:00 2001 From: Fredrik Osterlind Date: Tue, 29 May 2012 16:46:53 +0200 Subject: [PATCH] compiling with SMALL=0 to avoid problems with Contiki's elf loader --- .../contiki_tests/sky_shell_exec_serial.csc | 97 ++++++++++++------- 1 file changed, 64 insertions(+), 33 deletions(-) diff --git a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc index d7319dc9a..795578ed3 100644 --- a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc +++ b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc @@ -2,7 +2,7 @@ My simulation - 0 + -2147483648 generated 1000000 @@ -21,28 +21,33 @@ Sky Mote Type #sky1 [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.c echo CLEANING -make clean TARGET=sky - -echo COMPILING CONTIKI EXECUTABLE -make hello-world.ce TARGET=sky +make TARGET=sky clean CLEAN=symbols.? echo COMPILING FIRMWARE WITH CORE -make sky-shell-exec.sky TARGET=sky -make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky -make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky -make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky -make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky +make sky-shell-exec.sky TARGET=sky SMALL=0 +make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky SMALL=0 +make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky SMALL=0 +make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky SMALL=0 +make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky SMALL=0 + +echo COMPILING CONTIKI EXECUTABLE +make hello-world.ce TARGET=sky SMALL=0 [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.sky se.sics.cooja.interfaces.Position + se.sics.cooja.interfaces.RimeAddress se.sics.cooja.interfaces.IPAddress se.sics.cooja.interfaces.Mote2MoteRelations + se.sics.cooja.interfaces.MoteAttributes se.sics.cooja.mspmote.interfaces.MspClock se.sics.cooja.mspmote.interfaces.MspMoteID se.sics.cooja.mspmote.interfaces.SkyButton se.sics.cooja.mspmote.interfaces.SkyFlash + se.sics.cooja.mspmote.interfaces.SkyCoffeeFilesystem se.sics.cooja.mspmote.interfaces.SkyByteRadio se.sics.cooja.mspmote.interfaces.MspSerial se.sics.cooja.mspmote.interfaces.SkyLED + se.sics.cooja.mspmote.interfaces.MspDebugOutput + se.sics.cooja.mspmote.interfaces.SkyTemperature @@ -58,15 +63,15 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky se.sics.cooja.mspmote.interfaces.MspSerial - ls~;~K~;ls~;read hello-world.b64~; + ls~;~K~;ls~;read hello-world.b64~;ls~;~K~;ls~; sky1 se.sics.cooja.plugins.SimControl - 248 - 3 + 255 + 5 200 0 0 @@ -78,20 +83,11 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky Serial port 0,0 - 545 + 656 1 - 551 - 3 - 347 - - - se.sics.cooja.mspmote.plugins.MspStackWatcher - 0 - 566 - 2 - 201 - 247 - -1 + 295 + 9 + 674 se.sics.cooja.plugins.ScriptRunner @@ -178,6 +174,7 @@ YIELD_THEN_WAIT_UNTIL(msg.equals("continue")); write(mote, "exec hello-world.ce\n"); while (true) { YIELD(); + log.log("> " + msg + "\n"); if (msg.contains("OK")) { log.log("> ELF loader returned OK\n"); } @@ -185,18 +182,52 @@ while (true) { log.log("> Hello world process started\n"); log.testOK(); } - if (msg.contains("Symbol not found")) { - log.log("> ELF loader error: " + msg +"\n"); - log.testFailed(); - } } true 600 + 2 + 966 + 670 + 8 + + + se.sics.cooja.plugins.LogListener + + + + + 659 + 4 + 250 + 7 + 419 + + + se.sics.cooja.plugins.Visualizer + + se.sics.cooja.plugins.skins.IDVisualizerSkin + se.sics.cooja.plugins.skins.GridVisualizerSkin + 0.9090909090909091 0.0 0.0 0.9090909090909091 52.925895580668964 -30.727309217874634 + + 211 + 3 + 164 + 16 + 239 + + + se.sics.cooja.plugins.MoteInterfaceViewer + 0 + + Coffee Filesystem + 0,0 + + 397 0 - 700 - 215 - 199 + 395 + 263 + 13