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.

[General] boot loader and start up code

Status
Not open for further replies.

eng_ibrahim

Member level 1
Joined
Nov 21, 2012
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,555
can any one tell me
What is the difference between boot loader and startup code ? with examples
thanks in advance
 

Hi,

The easiest way to explain to me is.
The bootloader is like a pc bios (Start Code) in which after loading your program code.
In the bootloader it makes a series of recognition (communicates) in the Hardware CPU, Ports, Memory ...
In a memory address specified without this Boot and Startup code, when loading your program will not work.

Startup code would be a series of administrator bootloader code without this could not start your program code or loads the Code Program into memory when the system starts up.
 

Hi,

Bootloader:
Is not part of your application software. It is a piece of code to load your application code into the controller/processor. It is used only when you want to load a new software (version) onto the controller.
Example: a bootloader may communicate with the PC (using USB or UART) to load your application software from PC into the microcontroller's program memory. After that it can be executed.

Startup code:
Is a part of your application software. It is automatically generated by the compiler and added (at the programstart) to your application software. Usually you don't know, nor you have to take care about it. The startup code performs standard functions like data memory erase, stack pointer setup, standard periferal setup. This is performed each time immediately after reset/power_on and may take only some milliseconds. You won't recognize this. Then automatically your application software starts.

Klaus
 
Your compiler will probably have an option like "run to main". If this option is enabled, then you won't ever see the startup code. Disable this option, download the program with an emulator and start debugging. The program will then freeze to the startup code and you will be able to see it.
 
Hi,

Bootloader:
Is not part of your application software. It is a piece of code to load your application code into the controller/processor. It is used only when you want to load a new software (version) onto the controller.
Example: a bootloader may communicate with the PC (using USB or UART) to load your application software from PC into the microcontroller's program memory. After that it can be executed.

Startup code:
Is a part of your application software. It is automatically generated by the compiler and added (at the programstart) to your application software. Usually you don't know, nor you have to take care about it. The startup code performs standard functions like data memory erase, stack pointer setup, standard periferal setup. This is performed each time immediately after reset/power_on and may take only some milliseconds. You won't recognize this. Then automatically your application software starts.

Klaus

thanks Klaus so the bootloader like the code that burned on microcontoller and the compiler will add the start up code on this bootloader before running the main code
 

In brief, the bootloader is a second software inside the same flash with the application. On the other hand, the startup code will run in any case, with or without the bootloader. So startup code will run before your code. Bootloader is an entirely different software from the application. Hope it is more clear for you now.
 
In brief, the bootloader is a second software inside the same flash with the application. On the other hand, the startup code will run in any case, with or without the bootloader. So startup code will run before your code. Bootloader is an entirely different software from the application. Hope it is more clear for you now.

I recently design a board with a cpu intel . it is right all of voltages . i download framware
it but it do not work and display bios . do have it a startup code moreover framwear ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top