Saving a Sketch as a Bootloader to Modify Flash at Runtime

Would it be possible, with a programmer, to save a regular sketch to an Aetmel chip like the mega328 as a boot loader? From what I understand, only boot loaders have permission to modify program (flash) memory at runtime.


There is no need to become the bootloader, there are ways to call it.

Writing to FLASH from application. Please test and enjoy :-)

Hey that is cool. Thanks for the pointer.