|
From: cyril a. <cyr...@in...> - 2011-05-03 14:10:27
|
thanks Mariano but with sky target the code build but at loading there are errors: Could you tell me more about this? my mspgcc version is msp430-gcc (MSPGCC4_20110312) 4.4.5 your .csc returns java stack trace: se.sics.cooja.GUI$SimulationCreationException: Unknown error: Index: 39, Size: 3 at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3222) at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3131) at se.sics.cooja.GUI.doLoadConfig(GUI.java:2228) at se.sics.cooja.GUI$3.run(GUI.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.IndexOutOfBoundsException: Index: 39, Size: 3 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at se.sics.mspsim.debug.DwarfReader.readLines(DwarfReader.java:192) at se.sics.mspsim.debug.DwarfReader.read(DwarfReader.java:123) at se.sics.mspsim.util.ELF.readSections(ELF.java:302) at se.sics.mspsim.util.ELF.readAll(ELF.java:322) at se.sics.mspsim.util.ELF.readELF(ELF.java:473) at se.sics.cooja.mspmote.MspMoteType.loadELF(MspMoteType.java:369) at se.sics.cooja.mspmote.MspMoteType.getELF(MspMoteType.java:378) at se.sics.cooja.mspmote.MspMoteType.getFirmwareDebugInfo(MspMoteType.java:387) at se.sics.cooja.mspmote.MspMote.initMote(MspMote.java:129) at se.sics.cooja.mspmote.MspMoteType.generateMote(MspMoteType.java:142) at se.sics.cooja.Simulation.setConfigXML(Simulation.java:668) at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3201) ... 4 more in the console the infos are: [java] Line - Opcode base: 187 [java] FATAL [Thread-1] (SkyMote.java:66) - Error when creating Sky mote: [java] java.lang.IndexOutOfBoundsException: Index: 39, Size: 3 [java] at java.util.ArrayList.rangeCheck(ArrayList.java:571) [java] at java.util.ArrayList.get(ArrayList.java:349) and others like : [java] Caused by: java.lang.NullPointerException [java] at se.sics.cooja.interfaces.IPAddress.<init>(IPAddress.java:72) [java] ... 15 more [java] FATAL [Thread-1] (MoteInterfaceHandler.java:92) - Could not load interface: class se.sics.cooja.interfaces.IPAddress [java] FATAL [Thread-1] (MoteInterface.java:87) - Exception when calling constructor of class se.sics.cooja.mspmote.interfaces.MspMoteID ----- Mail original ----- On Tue, May 03, 2011 at 01:52:02PM +0200, cyril auburtin wrote: > Ok Mariano > > 1- I have checked out recently > > #:~/workspace/contiki$ git log -1 > commit cae8ef206ac6b5b56ea29556cc51d4710cc4a0a2 > Author: Zhitao He <zh...@si...> > Date: Wed Apr 27 19:12:46 2011 +0200 > > fixed excessive retransmissions of junk packets after runicast timeout > fixed stuck packet ID for next packet after runicast timeout Thanks, this is helpful because it tells me you are using the correct codebase, a version that is current enough, and I can checkout your specific commit and test. > > 2- Can you tell me the steps you follow to make rpl-bor-router simulation work > > What I did is launch cooja, (ant run) > mote type> create mote type > contiki mote type (sky mote type have no space > enough) > firmware: contiki/examples/ipv6/rpl-border-router/border-router.c > > but this does'nt not compile: > > > > make border-router.cooja TARGET=cooja I've tested it with TARGET=sky, I don't know if TARGET=cooja works or not. Can you try again with TARGET=sky? I've attached a csc that should give you a sky border router and udp client (thanks to Steve Jones). To build the border-router for sky you need the following in the Makefile (thanks to Sana): diff --git a/examples/ipv6/rpl-border-router/Makefile b/examples/ipv6/rpl-border-router/Makefile index 3fd4c82..10d7d64 100644 --- a/examples/ipv6/rpl-border-router/Makefile +++ b/examples/ipv6/rpl-border-router/Makefile @@ -5,6 +5,9 @@ CONTIKI=../../.. WITH_UIP6=1 UIP_CONF_IPV6=1 +CFLAGS += -ffunction-sections +LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__ + #Override inclusion of internal webserver with make WITH_WEBSERVER=0 WITH_WEBSERVER=1 I've attached this as a patch and you can also fetch it from the "sky-borderrouter-fix" branch here: git://git.devl.org/git/malvira/contiki-2.x.git I don't know much about sky, but it probably makes sense to include this fix in mainline somehow... -Mar. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Contiki-developers mailing list Con...@li... https://lists.sourceforge.net/lists/listinfo/contiki-developers |