How Do I Read Bootloader Using Avrdude

Hi

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?

Never mind . . . figured it out myself as I always end up doing

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…

Why would you not post what you found? someone else (like me!) is trying to work out the same thing :slight_smile:

xkcd: Wisdom of the Ancients comes to mind....