I am trying to install a boot loader on an ATMEGA644P and I'm afraid I'm totally way in over my head. This is for a desktop synthesizer, and unfortunately the instructions provided are fairly cryptic to me, including what app I'm supposed to use exactly or how to go about it. I got me an AVRISP mkII programmer connected to my computer, and I was wondering if someone might be able to give me an idea of how to go about what these instructions instruct me to do?
https://pichenettes.github.io/mutable-instruments-diy-archive/shruthi/firmware/
I appreciate all the help any of you can provide.
Many thanks!
I am coming in late to the show and haven't read 100% of the convo and it is still not quite clear to me why you want to burn a bootloader to the ATmega644. In general a bootloader is used to flash a microcontroller
in-place, i.e. using a serial communication channel *while the microcontroller resides on its PCB*. From what I understood you had to extract the MCU from its socket and burn the bootloader using an external programming gear (e.g. AVRISPmkII and a 6-pin header), is that correct?
If that's true and unless I missed something, then you do not need a bootloader to program your microcontroller. I have read on
https://github.com/Lauszus/SanguinoSince the ATmega1284 is not supported by Avrdude.
That information is outdated and incorrect. Recent versions of avrdude *do* support that microcontroller (along with the 644, which the same unit with smaller memory footprints).
Consequently the operations you had to run through to burn the bootloader are the same whether you want to flash a bootloader or flash a program. So it is possible you don't need a bootloader at all. In fact it is not necessary if you can program it on a dedicated socket or via the 6-pin header, in which case the protocol used is "serial downloading", as per the datasheet, see page 299:
https://ww1.microchip.com/downloads/en/DeviceDoc/doc2593.pdf.
I don't know if that helps as I am not 100% sure about how you flashed your microcontroller. Anyway congrats for getting through
EDIT: By the way you can have
avrdude list all supported microcontroller units:
avrdude -p '?'
On my machine the list is pretty impressive (~350 items). The only thing you might need to change to add a new microcontroller is
avrdude.conf as that file holds the description for all supported units.