osd-contiki/platform/micaz/buildscripts/Makefile.mib510
kasunch 1ee52635c8 1. Changed fuse bits to preserve EEPROM through the chip erase when uploading a new OS image.
2. Added a new make rule to erase EEPROM through the chip erase.
2009-09-24 07:09:31 +00:00

6 lines
245 B
Makefile

%.upload: %.srec
uisp -dprog=mib510 -dserial=$(PORT) -dpart=ATmega128 --wr_fuse_h=0xd1 --wr_fuse_e=ff --erase --upload if=$< --verify
erase:
uisp -dprog=mib510 -dserial=$(PORT) -dpart=ATmega128 --wr_fuse_h=0xd9 --wr_fuse_e=ff --erase