I'm working on some experiments, also trying to learn avrdude.
When I do a avrdude read of "flash" memory and write contents to hex file, it doesn't seem to include the bootloader area code. The program code is there, but no bootloader code.
Looking at the avrdude.conf file, I see the different memory types: flash, lfuse, hfuse, lock, etc.
Nothing specific to "boot" memory, so I presumed "flash" read would also include the bootloader section.
What do I need to read, and then write bootloader to hex file? Am I doing something wrong?
I presumed "flash" read would also include the bootloader section.
It should. The bootloader section is at the end of flash on old-style AVRs, and at the beginning of flash on SAMD and ATmeag4809. It won't show up as a separate section or anything, just a part of flash that isn't erased...