Jflashmm
From TinyOS Wiki
Restoring bootloader using JFlashmm programming for IMote2 on Windows using wiggler cable
- Follow the instructions at http://tech.groups.yahoo.com/group/intel-mote2-community/message/392 and http://www.cse.wustl.edu/wsn/index.php?title=Installing_the_Imote2_USB_Boot_Loader
- Copy Flash_8810_1_16.dat and rename the copy as Flash_0_1_16.dat
- If facing problems restart the machine once more after installation giveio.sys (and restarting).
- Do not forget to change the parallel port mode to ECP in the BIOS settings
- If you still face problem then you should erase the complete flash using the following command
- JFlashmm.exe bulbcx16 attributes.bin E 0 WIG
- Erasing the complete flash deletes the address of the imote hence you will need to follow the instructions at | restoring imote address to restore the address.
- Connecting the empty battery pack and using a bat file are important during flash programming. They help to handle the timing issue while programming using JTAG (Follow the result of search on imote2 yahoo group using subjects "JTAG cable error" and "Verification error" between Svilen Mihaylov and others).
- The parallel port cable needs to be set in the 'Use any interrupt assigned to the port' under windows device manager for proper functioning.
- The S_TRST signal needs to be left out else it interferes with programming. Using http://www.diygadget.com/store/jtag-test-tool/wiggler-buffered-all-in-one-jtag-programmer-version-2/prod_33.html one can configure not to use the signal.
- A sample .bat file can with the ordering of instructions which seem to work for me are available at [1]. Please edit the appropriate file name for the binary imote address file.