I am working with avrdude under Linux.
I want to clear that portion of the flash, which contains the program code without clearing the bootloader (which is a boards vendor own product it seems).
Doing this I dont want to fiddle with fuses and lock bit for this time (fear of a newbie... ;) )
Targets are an ATmega328p (3.3V,8MHz) and an ATmega2560 (5V,16MHz).
As I understood the manpage, avrdude -e clears the whole flash including the bootloader...
How can I do this?
Does the flash of ATmega MCUs have a wear leveling as used with USBsticks and other flash media?
Thank you ver much in advance for any help!