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.
This commit is contained in:
kasunch 2009-09-24 07:09:31 +00:00
parent 71b5872045
commit 1ee52635c8

View file

@ -1,2 +1,5 @@
%.upload: %.srec %.upload: %.srec
uisp -dprog=mib510 -dserial=$(PORT) --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --erase --upload if=$< --verify 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