Closed airiclenz closed 4 years ago
See here as well: https://community.platformio.org/t/why-target-program-erases-eeprom/803
The additional upload_flags definition on the platformio.ini file :
upload_flags =
-D
...to prevent avrdude from performing a chip erase seemed to have solved the issue. Maybe an update of the documentation would be helpful.
Uploading to a Atmel-Avr chip with an external programmer using the command:
pio run -t program
...erases the EEPROM as well.