What is a Bootloader?

Thread Starter

Sonoma_Dog

Joined Jul 24, 2008
99
What is a bootloader for microcontroller? I was wanted to buy a ATmega168 microcontroller, and it said it's Arduino-bootloader preprogrammed. So is that mean this chip will only be able to program using "Arduino Diecimila PLUS USB Board" ?

I guess my questions is, what is bootloader and why do we need it?

Thanks in advance. !
 

John Luciani

Joined Apr 3, 2007
475
The bootloader is the code the runs when the uC resets. If you get an ATmega168
chip with the Arduino bootloader in flash it makes sense to use the Arduino tools
to program it. If you do not want the Arduino tools you could get a blank ATmega168
and an in-circuit system programmer (ISP).

A bootloader is not necessary. The Arduino bootloader runs when the uC resets.
The last thing the bootloader does is call your code. You could have your code
startup when the uC resets rather than the Arduino bootloader.

The Arduino bootloader and tools are a quick way to get started.

(* jcl *)
 

nanovate

Joined May 7, 2007
666
If you do not want the Arduino tools you could get a blank ATmega168
and an in-circuit system programmer (ISP).
Using the ISP you can then erase the bootloader or load your own bootloader or just leave it there.
 

Thread Starter

Sonoma_Dog

Joined Jul 24, 2008
99
Thank you so much for all of the answers! It kind of make sense, i am sure all my questions will be answered after i do some more research on the Arduino site.
 
Top