Author Topic: Burn the Arduino bootloader using RPI  (Read 2587 times)

0 Members and 1 Guest are viewing this topic.

Offline trevorfordTopic starter

  • Contributor
  • Posts: 10
  • Country: ca
Burn the Arduino bootloader using RPI
« on: February 23, 2015, 02:32:55 am »
I've been looking online but haven't found anything promising,
I'm building a few Arduinos and I need an easy way to burn to bootloader to them, I know i can just buy a programmer but I would rather get the job done with what I have. I'm curious to know if there is a way to do this with just my Raspberry Pi
If anyone knows or has a link to a good tutorial that would be great.
Thanks,
Trevor
 

Offline tech5940

  • Supporter
  • ****
  • Posts: 85
  • Country: ca
Re: Burn the Arduino bootloader using RPI
« Reply #1 on: February 23, 2015, 03:13:17 am »
Do you have one already boot loaded Arduino? I used my original uno to boot load an Atmega chip I bought from Digikey.


Sent from my iPhone using Tapatalk
 

Offline trevorfordTopic starter

  • Contributor
  • Posts: 10
  • Country: ca
Re: Burn the Arduino bootloader using RPI
« Reply #2 on: February 23, 2015, 04:41:53 am »
Do you have one already boot loaded Arduino? I used my original uno to boot load an Atmega chip I bought from Digikey.


Sent from my iPhone using Tapatalk
I dont have one personally but one of the teachers at my school does so i might be able to use that! thank you.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Burn the Arduino bootloader using RPI
« Reply #3 on: February 23, 2015, 08:49:01 am »
There are a couple of Arduino sketches that will burn bootloaders onto other arduinos very quickly.
I was first with "Optiloader": https://github.com/WestfW/OptiLoader and it's probably simplest (but harder to upgrade, and not so well documented.)  Also, it's designed for very fast bootloader programming: connect a cable from the arduino with the sketch to the target arduino, hit reset, and wait for the target power to cycle...

Adafruit followed with their standalone programmer: https://github.com/adafruit/Standalone-Arduino-AVR-ISP-programmer which is more general purpose and less bootloader oriented.

And the most recent is Nick Gammon's "Chip Programmer" here: http://www.gammon.com.au/breadboard (this one is probably the best-documented, especially WRT burning bootloaders.)

AVR programming is via SPI, with no inconvenient high voltages, and RPi theoretically supports SPI as well, so in theory you could write a quick programmer for RPI as well.  Or apparently avrdude will run on RPi: http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/
(beware voltage levels, though!)

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf