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 a new issue