Go Down

Topic: BOOT LOADER (Read 3 times) previous topic - next topic

RandallR

I knew y'all would understand.  If I need to be a "Power User" then I should change jobs.  One that requires cleaning products.

elico

I wonder why installing a boot loader directly on a blank ATmaga from the IDE is not an option
at arduino UNO ??

Is it so complicated matter ?
Is the change needed so big ?

Elico

CrossRoads

#17
May 31, 2012, 08:52 pm Last Edit: May 31, 2012, 08:55 pm by CrossRoads Reason: 1
Installing the bootloader is not difficult, just need an AVR ISP to control the SCK/MISO/MOSI/Reset pins.
One can use a dedicated device to do it, I use this one
http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415
and select Tools: Burn Bootloader in the IDE.

Or one can use the Optiloader sketch, download it into an Uno or equivalent,
connect power, gnd, D13 to D13 (SCK), D12 to D12 (MISO), D11 to D11 (MOSI) and Uno's D10 to programmed devices' Reset pin.
Programmed device needs 16 MHz crstal/caps, or comparable resonator, or be another board:
https://github.com/WestfW/OptiLoader
See the video in this thread
http://arduino.cc/forum/index.php/topic,68183.0.html

Nick Gammon also has a nice article on programming bootloaders,
http://www.gammon.com.au/forum/?id=11635

Alternately if one has an FTDI equipped board, or an FTDI breakout board, one can use that to bit-bang a bootloader in.
http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

RandallR

#18
May 31, 2012, 09:47 pm Last Edit: May 31, 2012, 09:51 pm by RandallR Reason: 1

I wonder why installing a boot loader directly on a blank ATmaga from the IDE is not an option at arduino UNO ??


Installing a boot loader onto a blank chip is not a big deal.  However, it is not part of the Arduino design.  The most common method is to use ISP (In System Programming) also know as an ICSP (In Circuit Serial Programming).  Devices to do this are very common.

You have options, some you have read about and some pointed out by CrossRoads.

The easiest, and maybe the cheapest is to get a USBasp.  They can be had for less than $5.  It probably will have a 10 pin connector, you will need to spend another $2.50 to get a 10 pin to 6 pin adapter.  After that you are set to program as many chips as you would like.  Just plug it up and go to town.

I believe that you can also load the sketch "ArduinoISP".  This will turn your Arduino into an ISP.  I suspect it will work on the Uno, although I have never used it.
You then need to wire up the new chip.  You can't replace the chip in your Uno because you will be using that one to run the sketch.  All you need is a little breadboard and 6 wires.  I have not purchased a breadboard in a while but this might be a couple dollars cheaper.  But you need to be careful with your wiring.


Is it so complicated matter ?   Is the change needed so big ?


I'm sure that you would like to be able to use the same USB cable that you use to load your sketches to also load your boot loader, but alas it is not to be.

CrossRoads

"I'm sure that you would like to be able to use the same USB cable that you use to load your sketches to also load your boot loader, but alas it is not to be."
Not totally true - the final option I listed does just that, works great on a duemilanove style board where one has access to the pins of an FTDI chip.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up