Questions tagged [bootloader]

A bootloader is a utility program used to load an application program into memory.

A bootloader may include additional functionality, such as self-tests and upgrade mechanisms.

326 questions
65
votes
3 answers

What is a boot loader, and how would I develop one?

I've met many projects in which an AVR microcontroller uses with a bootloader (such as the Arduino), but I don't understand the concept very well. How can I make a bootloader (for any microcontroller)? After writing my bootloader, how it is…
mina_g
  • 1,355
  • 4
  • 18
  • 21
33
votes
8 answers

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the main application program? Generally speaking, does…
alt-rose
  • 1,441
  • 14
  • 29
21
votes
6 answers

Cell Phone as Microcontroller

I have a couple of cell phones laying around, one of them being this one: http://www.gsmarena.com/sony_ericsson_elm-3057.php Is possible to clear the flash memory and replace it with a bootloader and then upload arduino sketches or pic32…
Harry Svensson
  • 8,139
  • 3
  • 33
  • 53
18
votes
4 answers

How does factory reset work?

All embedded devices includes a "Factory reset" option that allows the user to reset his device if something is wrong. I am developing a Firmware on an STM32 board. The firmware includes a boot loader that allows to upgrade the application via…
Pryda
  • 1,241
  • 2
  • 19
  • 30
15
votes
2 answers

How can I use my SMD Arduino to program a separate DIP ATmega328?

I have an arduino with a surface mounted (SMD) microcontroller: I know how to use a DIP arduino as a programmer for a DIP ATmega328. It's easy --you just pop your microcontroller in the holder. However, with a surface-mount Arduino, there's no…
Manishearth
  • 2,882
  • 2
  • 22
  • 32
12
votes
6 answers

What is the purpose of a microcontroller bootloader?

From my understanding, for a common microcontroller (e.g. AVR, PIC), there are generally two methods of programming its flash memory. Using a programmer: In-Circuit Serial Programming (or some variant?) Some form of a bootloader, to which an…
midnightBlue
  • 1,805
  • 4
  • 21
  • 35
12
votes
2 answers

Unable to get bootloader working on custom PCB with AT32UC3L

I have designed a PCB for a client recently, everything is fine with the hardware and software (application is working as it is supposed to). Now we are facing the need to update the program inside the microcontroller, but since these PCBs are…
Alexandre Lavoie
  • 243
  • 1
  • 11
11
votes
1 answer

Arduino Bootloader Details

Can someone please explain how the Arduino bootloader works? I'm not looking for a high level answer here, I've read the code and I get the gist of it. I've also read through this other post (I had even been one of the responders to it). There's a…
vicatcu
  • 22,499
  • 13
  • 79
  • 155
9
votes
2 answers

Good tools or methods for understanding structure of bootloader?

I recently figured out the cause of a nasty bug I've been working on with an Atmel AT91SAM9G20 SBC running U-boot, an open source bootloader. The core of the problem was that U-boot expected the hardware to be configured differently than I had built…
pingswept
  • 12,581
  • 4
  • 46
  • 64
9
votes
2 answers

Reduce the size of the Arduino bootloader?

Is there any way of reducing the size of the preloaded Arduino bootloader, to save some bytes for the program?
powtac
  • 1,022
  • 2
  • 16
  • 27
9
votes
2 answers

What's the difference between a generated hex file and a binary file in embedded systems?

I have an STM32 project (let's call it blinky). This project is developed using Keil IDE. It blinks an LED every 1 second. When I build it, a HEX file is generated. Let's say I want to upgrade the board using OAD (Over the Air Download). The new…
Pryda
  • 1,241
  • 2
  • 19
  • 30
9
votes
4 answers

I don't get the Arduino concept

I have been struggling with making an Arduino for a while (was successful in making a breadboard version using an ISP programmer cable). They say that the Arduino bootloader is made so that no external circuitry is required to program the ATmega8.…
Rick_2047
  • 3,897
  • 5
  • 46
  • 68
9
votes
2 answers

PIC programming through FPGA

I would like to know if there is a way to program a PIC for the first time (write in Flash) through an FPGA card. The PIC is already soldered to the FPGA and I can't remove it. No bootloader exists on the PIC. Thus I need to program it in USART /…
Myst
  • 91
  • 3
8
votes
2 answers

ATTiny85 not working after burning bootloader

I am having a problem with my ATTiny85. I should mention I use Arduino as an ISP to program it. My ATTiny worked fine until I decided that I need to step up the clock speed from 1MHz to 20MHz so I selected ATTiny85 at 20MHz from the Boards menu and…
Calin
  • 647
  • 10
  • 22
8
votes
1 answer

"Faster" Arduino bootloader

The Arduino bootloader has a wait-time to facilitate "sketch" (code) uploading; this causes a delay of a couple of seconds before the start of the main code. I would like to modify the bootloader file (specifically for the Arduino Mega) so as to…
boardbite
  • 4,892
  • 11
  • 47
  • 73
1
2 3
21 22