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.

STM32 bootloader option

Status
Not open for further replies.

saochandan

Junior Member level 1
Junior Member level 1
Joined
Mar 13, 2012
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,409
Hi all

can any body tell why we use bootloader for upgrading the firmwares. how it saves external hardwares and what hardwares it saves?

Since during development we use programmer via serial wire debug ports for downloading and updating the firmware
In the same way, why we can't use same programmer in-field upgrading

Kindly explain in context of stm32f10x MCU.
 

Hi all

can any body tell why we use bootloader for upgrading the firmwares. how it saves external hardwares and what hardwares it saves?

Since during development we use programmer via serial wire debug ports for downloading and updating the firmware
In the same way, why we can't use same programmer in-field upgrading

Kindly explain in context of stm32f10x MCU.
Normally when you launch your project , you don't have access to the programmer's pin . but you have access to USB , Serial Ports , Ethernet or even RF or GSM modules installed on your board . So you can upgrade your program via these tools without any need to manually open the box of your project and program via programmer .
For example if you have a GSM module on your board , you could upgrade your program through GPRS from far far away .
Apart from that sometimes in upgrading you just need to change one byte of your program . in this case maybe it isn't logical to load all the program for just a little change .
But if you have access to serial port for programming (in fact a bootloader) and don't want to program from the distance and time of programming isn't important , I think there is no need

Good Luck
 
Normally when you launch your project , you don't have access to the programmer's pin . but you have access to USB , Serial Ports , Ethernet or even RF or GSM modules installed on your board . So you can upgrade your program via these tools without any need to manually open the box of your project and program via programmer .
For example if you have a GSM module on your board , you could upgrade your program through GPRS from far far away .
Apart from that sometimes in upgrading you just need to change one byte of your program . in this case maybe it isn't logical to load all the program for just a little change .
But if you have access to serial port for programming (in fact a bootloader) and don't want to program from the distance and time of programming isn't important , I think there is no need

Good Luck

Thanks for your reply.


It means bootloader saves from the need of having programming pins. Can you please tell me other advantages of bootloader.

It means if I have access to programming pins there is no need of bootloader. I can upgrade the program in the same way as i do while development.


Can you list all the sources from which I can download the program using bootloader?

Thanks
 

Every way of communicating with the microcontroller is a source of downloading :
UART , SPI , I2C , USB , CAN , IO PORTS , …
In fact you have a program in a part of flash which could get data from outside or send data to outside
Now you just need to get or send data (communicating with outside) and write or read flash (communicating with the microcontroller).
Now you could find other advantages or innovate an advantage by yourself
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top