confused about bootloader and ATMeag328


hi everyone,

i want use arduino software (and it's collection of libraries) program atmega328.

i read in order that, need burn bootloader atmega. can done, using arduino (such nano) , use isp programmer.

then, on example found, use usb-to-serial circuit able upload sketches atmega...

some other threads found, mention bootloader not required...

so here questions:

  • what bootloader doing, , there many version ?
  • can use same nano upload sketch (to atmega328 ) using isp ?
  • in case bootloader required ?
  • what other chips (attiny2313, atmega8/16, etc ...) can used same way ?


thanks !


you can without bootloader. need burn fuses first using programmer set system clock type (16 mhz external full swing crystal uno example, among other things).

then file:upload using programmer load sketch no bootloader.

i recommend nick gammon's bootload installer sketch burn fuses , put bootloader on.
http://www.gammon.com.au/breadboard
or
http://www.gammon.com.au/bootloader

then can upload sketches via serial port, , since have serial port connected can use debug sketches using serial monitor simple
code: [select]

serial.println("program here now");
//or
serial.println(variable_name);

type statements.

an inexpensive usb/serial adapter can used
http://www.tinyosshop.com/index.php?route=product/product&filter_name=ftdi&filter_description=true&filter_sub_category=true&page=2&product_id=186
or can put nano reset (connect reset gnd) , use ftdi adapter on board, connecting rx & tx, , manually resetting breadboard when ide shows "compiled xxx of 32xxx bytes". timing reset press can easier if select file:preferences , check verbose outputs.
also check arduino accessories on products page, i've not used nor know availability.

if it, can @ standalone programmer sd card board, when get  out in field , want install pre-compiled programs without dragging laptop along.
http://www.crossroadsfencing.com/bobuinorev17/programmer.html



Arduino Forum > Using Arduino > Programming Questions > confused about bootloader and ATMeag328


arduino

Comments