Ok, i'm being stupid, where is the link to the source code:
This Application Note describes how to use Self-programming Program Memory to access the flash memory and reprogram it while executing code, using given C functions. It includes source code written for ATmega128, where the flash write function is located in the Boot section of Flash and remaining code placed in the application section of flash.
Microchip, AVR, Microcontroller, Microcontroller, self-programming, Bootloader, In-System Programming, ISP
It includes source code written for ATmega128
Does it? really? where?