Flashing MCU

Fuse settings:

LOCK = 2f
LFUSE = ff
HFUSE = d6
EFUSE = fd

If you’re using AVR Studio to flash MCU, here’s how it looks in the dialog:

MidiALF_Fuses

Note that if you decide to flash boot loader manually using AVR Studio, you’ll have to:

  1. flash muboot.hex
  2. uncheck “[X] Erase device before flash programming”
  3. flash midialf.hex

Alternatively you can use console version of AVR ISP programmer:

stk500 -cUSB -dATmega644pa -I125Khz -e -fD6FF -FD6FF -EFD -GFD
stk500 -cUSB -dATmega644pa -I4Mhz -ifmuboot.hex -pf -vf
stk500 -cUSB -dATmega644pa -I4Mhz -ifmidialf.hex -pf -vf
stk500 -cUSB -dATmega644pa -I4Mhz -iemidialf_eprom.hex -pe -ve

Firmware flashing instructions for OS X

Here is what you have to do:

  1. Download and install Crosspack
  2. Copy the .hex files from github into a folder on your desktop (or anywhere where you find them later).
  3. Turn your MidiALF on.
  4. Connect your AVRISPmkII to your USB port and stick the ribbon cable to your 2×3 pin AVR ISP header. Red lane left. The AVRISP led should change from red to green now.
  5. Right-click one .hex file and open the infos for the file. There copy the path. E. g.: /Users/macbookpro/Desktop/Synths/MidiAlf/midialf_094
  6. Open programs-utilities: Terminal
  7. Change the path to the above folder. In this example: “cd /Users/macbookpro/Desktop/Synths/MidiAlf/midialf_094” – The terminal says “localhost:midialf_094 macbookpro$ “ then.
  8. Paste the following line at the prompt: “avrdude -B 100 -V -p m644p -c avrispmkII -P usb -e -u -U efuse:w:0xfd:m -U hfuse:w:0xd6:m -U lfuse:w:0xff:m -U lock:w:0x2f:m” and press enter – After avrdude said thank you…
  9. Paste the lines: “avrdude -B 1 -V -p m644p -c avrispmkII -P usb -U flash:w:midialf_094.hex:i -U flash:w:muboot.hex:i -U lock:w:0x2f:m”

(provided by loopino @ MI forums) — Thank you!

 

3 thoughts on “Flashing MCU

  1. hello Peter ,
    in order to use one new atmega 644p, I have to burn the bootloader.
    Have I to use the muboot.hex or it’s possible to use another one (as sanguino boot for atmega 644p) ?
    thank you

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s