How to load program to the mote via startage
How to load program to the mote that plug on stargate's on-board connector.
1. First convert the sourece image main.srec to main.srec.out and assigned a mote ID, in Cgwin console.
e.g. main.srec ---> main.srec.out and assigned id = 1
set-mote-id main.srec main.srec.out 1
2. Copy the file main.srec.out to the Stargate.
3. Load the program image (main.srec.out) to the mote via stargate.
uisp -dprog=sggpio -dpart=ATmega128 --wr_fuse_h=d9 --wr_fuse_e=ff --erase --upload if=main.srec.out
That's all.
Best wishes.