I am developing an application with a single ATMega 328P.
I program it with an Uno ICSP gateway and Arduino as ISP
I added MiniCore to my IDE 1.8.9 to configure the AT328p
The transfer of the program goes well, but each time I erase the contents of my Eeprom despite the option EEPROM retained in tools on the IDE.
I have checked avrdude manual and it says that the EEPROM erasing is part of the chip erase cycle, performing at every firmware uploading.
I fiound a topic on the forum which may be helpful for you:
So if you choose to retain EEPROM and flash a bootloader the EEPROM is retained, but if you choose retain EEPROM and upload code (not bootloader) the EEPROM is not retained? Retain EEPROM only works whit bootloader?
Thanks @denis-j , I use MiniCore quite a bit and even though I have not had reason to retain the EEPROM this is good information. So now I know that if I want to reatain EEPROM and upload code, I will need to upload with the serial port.
The "retain EEPROM" is controlled by a "fuse" bit, and the only way to set fuse bits from the Arduino IDE is with the "Burn Bootloader" command. I'm pretty sure that miniCore will not actually burn a bootloader if the tools menu is set to "no bootloader."