usbasploader not erasing flash
Posted: Mon Jun 27, 2011 4:48 pm
I have been using usbasploader with avrdude on linux for a good while now. But I have noticed that the -e "erase flash" option does not work.
sudo avrdude -c usbasp -p atmega328p -e
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: safemode: Fuses OK
avrdude done. Thank you.
After the alleged erase operation, the application still runs on the chip. I also think this is causing problems during programming as the chip I do not think is being erase before flashing. This is particularly a problem when flashing a program smaller than the one currently loaded.
Does anyone know if there is a fix?
sudo avrdude -c usbasp -p atmega328p -e
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: safemode: Fuses OK
avrdude done. Thank you.
After the alleged erase operation, the application still runs on the chip. I also think this is causing problems during programming as the chip I do not think is being erase before flashing. This is particularly a problem when flashing a program smaller than the one currently loaded.
Does anyone know if there is a fix?