Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is "Boot Loader" ??

Status
Not open for further replies.

yasser_shoukry

Full Member level 4
Joined
May 31, 2006
Messages
233
Helped
25
Reputation
54
Reaction score
5
Trophy points
1,298
Location
Cairo - Egypt
Activity points
2,749
Hi all,
I want to know what is meant by a "Boot Loader" file ? What does it contain and what applications do i need one ??

thanks in advance.
 

A bootloader is a special program that is used to provide self-programming or reload or update your application program in a microcontroller that supports bootloader.

For example, ATMega128L is an Atmel microcontroller.
It has a flash that can be divided into 2 sections, namely the RWW (Read-While-Write) and NRWW (Non-Read-While-Write Memory) Sections.

Your normal application program is stored in RWW section.
Your bootloader program is stored in the NRWW section.

For example, if you have a PC GUI software to control this MCU, instead of using the in-serial programmer or debugger, you can use a normal serial UART to update your application program using the bootloader program.

In other words, the microcontroller enters the bootloader program. It executes the instructions in the bootloader. The microcontroller will erase your application program. Then it will read all the bytes from the serial UART and stores the new bytes in the RWW section where your new application program is residing. In this way, newly updated application program is now residing in your flash memory.

Sometimes, this is also called self-programming.

(1) For the very first time, bootloader must be flashed by the in-circuit/serial/system programmer/debugger into the microcontroller.
(2) To achieve this, the programmer software must set the fuses of the microcontroller to activate bootloader options.

From this onwards, your in-serial programmer becomes an optional tool.

Update of new application program can be done through other GPIOs or even UART. This is possible by specifying port pins in your bootloader program to read in bytes that will form your application program.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top