Wednesday, 9 January 2013

Sprinter, Arduino 1.0.3, Sanguino-0101r1 and Pololu USB AVR Programmer

I recently learned that Sprinter is Arduino 1.0.3 compatible (has been for a while)

So I had to give it a try on my Sanguinololu 1.3a.

As per usual download the Arduino software from here, to suit your OS
Then download and install the Sanguino-0101r1 files from here

Grap a copy of the latest Sprinter from github 'git clone'

Edit sprinter configuration.h to suit the board and any other changes you need.

One of the things I wanted to get working was installing a new boot loader via the Arduino GUI using my Pololu USB AVR Programmer vs cmd line as I have been doing.

After some debugging I found that there was no hardware settings for the Pololu USB AVR Programmer

So I added the following to programmers.txt (as documented here) ISP v2

Then set your programmer to AVR ISP v2, and your serial port to /dev/ttyACM0 (linux naming convention)

Then Burn Bootloader works, uploading the new boot loader and setting the fuses.

One thing to note is that the upload baud rate has changed to 57600 from 38400 in the new boot loader. This means if you have a older boot loader, you will not be able to use Arduino 1.0.3 to upload new firmware via the boot loader. (without changing settings, or using the new bootloader)

Now switch your serial port to /dev/ttyUSB0 and your board to Sanguino W/ ATmega644P and upload your new firmware via the new, faster, bootloader.
Sprinter compiled and uploads without issues.  

No comments:

Post a Comment