The bootloaders, if fed a hex file that contains addresses the bootloader currently occupies, will erase the corresponding pages and attempt to write to them. Eventually a page will be erased that the bootloader is currently executing, and will subsequently crash.
The bootloaders need to know what areas it occupies, and prevent any addresses in those areas from being erased or programmed.
The bootloaders, if fed a hex file that contains addresses the bootloader currently occupies, will erase the corresponding pages and attempt to write to them. Eventually a page will be erased that the bootloader is currently executing, and will subsequently crash.
The bootloaders need to know what areas it occupies, and prevent any addresses in those areas from being erased or programmed.