Open GoogleCodeExporter opened 9 years ago
These are two hex file the lamp.hex is the program that I want to flash and his
result after a flash with -D
They are similar but not equal!
Original comment by occhiobe...@gmail.com
on 17 Nov 2011 at 8:59
Attachments:
You have to erase the flash before you can reprogram it. Why would you not
erase the flash?
Original comment by rsb...@gmail.com
on 19 Nov 2011 at 9:44
That's strange, Arduino upload programs with a "-D" option, always, before
programming. It is so wrong with flash?
Original comment by occhiobe...@gmail.com
on 19 Nov 2011 at 1:37
Without "-D" avrdude erase flash AND EEPROM, with my radio Turnigy 9X I have to
setup again all my parameter.
Original comment by occhiobe...@gmail.com
on 19 Nov 2011 at 2:16
Before new contents can be written to the Flash Program Memory, the memory has
to be
erased. Without erasing, it is only possible to program bits in Flash memory to
zero, not selectively setting a bit to one.
Arduino is a special case. What you're seeing is expected behavior.
Original comment by rsb...@gmail.com
on 20 Nov 2011 at 4:31
It is possible to erase only a page (256byte) before writing it without erasing
all flash AND eeprom?
Original comment by occhiobe...@gmail.com
on 20 Nov 2011 at 8:22
Not with SPI programming. There is only one 'erase' command, to erase the whole
chip. Arduino uses self-programming which does allow 'erase page' for flash.
You'd have to install a bootloader on the mega8 chip to get this feature.
Alternatively you could store a copy of the eeprom with your settings on it and
then restore it each time you reflash the chip.
Original comment by rsb...@gmail.com
on 21 Nov 2011 at 1:52
Original issue reported on code.google.com by
occhiobe...@gmail.com
on 17 Nov 2011 at 8:31