mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
No longer any need to specify memory when loading firmware
This commit is contained in:
parent
ad8941bc5d
commit
997baa67d1
@ -214,10 +214,9 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
|
|||||||
this.myCpu.setMonitorExec(true);
|
this.myCpu.setMonitorExec(true);
|
||||||
this.myCpu.setTrace(0); /* TODO Enable */
|
this.myCpu.setTrace(0); /* TODO Enable */
|
||||||
|
|
||||||
int[] memory = myCpu.memory;
|
|
||||||
logger.info("Loading firmware from: " + fileELF.getAbsolutePath());
|
logger.info("Loading firmware from: " + fileELF.getAbsolutePath());
|
||||||
GUI.setProgressMessage("Loading " + fileELF.getName());
|
GUI.setProgressMessage("Loading " + fileELF.getName());
|
||||||
node.loadFirmware(((MspMoteType)getType()).getELF(), memory);
|
node.loadFirmware(((MspMoteType)getType()).getELF());
|
||||||
|
|
||||||
/* Throw exceptions at bad memory access */
|
/* Throw exceptions at bad memory access */
|
||||||
/*myCpu.setThrowIfWarning(true);*/
|
/*myCpu.setThrowIfWarning(true);*/
|
||||||
|
Loading…
Reference in New Issue
Block a user