2

I don't know the Sloeber toolset, but it seems very unlikely, that it really has overwritten the bootloader. When programming via USB, it is actually the bootloader, which writes the program into the flash memory. So that would mean, that the bootloader had overwritten itself, only because a too large program. Not sure, if this is even possible. Anyway, you ...


1

If you have a sketch which can write its updated version into EEPROM of ATmega328p and then boootload from the EEPROM, then you can use the flash for the same purpose. The ATmega328p has 32kB of flash and only 1kB EEPROM. For my ArduinoOTA library I developed a way to store the uploaded binary in upper half of the flash and then let the bootloader copy the ...


1

Your RESET circuit is wrong. You have no pullup resistor on the RESET pin of the ATMega3560. You have an extraneous pulldown resistor on the D7 pin of the 16U2. That means your 16U2 will not be able to trigger a reset of the ATMega2560 to run the bootloader. Remove the pulldown on D7 of the 16U2 and add a 10kΩ pullup to the RESET pin of the ATMega2560. ...


Only top voted, non community-wiki answers of a minimum length are eligible