CDC Bootloader – PrintrBoard

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 :

CDC Bootloader, courtesy of Lincomatic – Link

AVRdude, “how-to install” link

Here are the steps I went through:

      1. Install AVRdude
      2. I bought and built the USBtinyISP kit from ladyada.net.
      3. 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.
      4. 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)
      5. 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

      1. 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)

      1. 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.

Advertisements
Tagged , , , , , ,

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: