Skip to main content

Timeline for Run code once after programming

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Mar 20, 2019 at 10:10 comment added Juraj see the EEPROM library's eeprom_crc example
Feb 15, 2019 at 17:47 answer added user47164 timeline score: 2
Feb 12, 2019 at 15:00 history tweeted twitter.com/StackArduino/status/1095336904386535427
Feb 12, 2019 at 11:10 comment added Gerben The fuses are only written when you select the "burn bootloader" option in the Arduino IDE. PS You can also use AVRdude to write to the EEPROM directly.
Feb 12, 2019 at 10:22 answer added Juraj timeline score: 8
Feb 12, 2019 at 10:16 comment added towe @Juraj The solution with the fuse has worked, although I had to flash it manually through avrdude (D6 instead of DE). Is it normal that changing it in the boards.txt would not update it when flashing (/ flashing using ArduinoISP)?
Feb 12, 2019 at 9:49 comment added Juraj change the high fuse setting in boards.txt to preserve the EEPROM content at ISP
Feb 12, 2019 at 9:23 comment added Michel Keijzers Personally I think your way is very clean, program an EEPROM bit, set it, and change it after doing a one time initialization. It's also very flexible, in case you want to do it multiple times (just use a counter in EEPROM for example). Or in case the initialization is not done correctly, you can omit resetting the bit.
Feb 12, 2019 at 8:49 history asked towe CC BY-SA 4.0