I’d just like to add before I start that messing with the fuses and bootloaders may result in bricking your board, just don’t blame me if it goes wrong!
Credit for this post goes to Lincomatic. I’m posting my methods and what I did to get my board working. I also think having this information available it good for everyone. So…
I’m working on OSX 10.7.4 with a PrintrBoard Rev. D and here are the files I’m using :
AVRdude, “how-to install” link
Here are the steps I went through:
- Install AVRdude
- I bought and built the USBtinyISP kit from ladyada.net.
- Connect the 6 pin socket on the USBtinyISP to the 6 pin header on the PrintrBoard so the RED wire on the ribbon cable is closest to the SD card socket.
- Add a jumper to the boot pins of the PrintrBoard, power it up, then press the reset button. (For Rev. A, B & C PrintrBoards you remove the boot jumper)
- To set up the required space to upload the bootloader and free up some extra pins on the PrintrBoard set the “fuses“. To do this paste and run the following code into Terminal:
avrdude -c usbtiny -p at90usb1286 -U lfuse:w:0xde:m -U hfuse:w:0xdb:m -U efuse:w:0xf0:m
- Then upload the CDC Bootloader, (make sure the path for the hex file is correct*).
avrdude -c usbtiny -p at90usb1286 -U flash:w:BootloaderCDC.hex:i
(note AVRdude will give a verification error, ignore it as the programmer can program but can’t read back large files)
- At this point you should power down the PrintrBoard and remove the 6 pin cable. You’re now ready to upload your firmware.
See the next post for how to configure your computer to upload the Marlin firmware to your PrintrBoard.
*the easiest way to get the right location of the bootloader.hex file is to type the first part “avrdude -c usbtiny -p at90usb1286 -U flash:w:” then drag the file into the terminal window over the text. This fills in the location for the file, then don’t forget to type “:i” at the end of the line.