Questions tagged [bootloader]

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

Filter by
Sorted by
Tagged with
54
votes
3answers
94k views

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)...
28
votes
8answers
5k views

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 ...
19
votes
6answers
6k views

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 ...
18
votes
4answers
6k views

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 ...
15
votes
2answers
4k views

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. ...
12
votes
2answers
975 views

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 ...
11
votes
6answers
3k views

What is the purpose of a microcontroller bootloader? [duplicate]

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 ...
11
votes
1answer
2k views

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 ...
9
votes
2answers
736 views

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?
9
votes
2answers
1k views

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 ...
9
votes
2answers
2k views

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 ...
8
votes
3answers
3k views

Arduino Bootloader

I am very new to embedded world. I had been till now working only on S/W Can anyone please explain me the use of the Arduino Bootloader? I want Arduino to perform some simple mathematics using some ...
8
votes
4answers
3k views

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 ...
8
votes
2answers
4k views

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 ...
7
votes
3answers
8k views

Do I really need to put stm32 microcontroller into bootloader mode to program it?

I have started learning stm32 microcontroller for a while using a very small development board "stm32f103c8t6" (or blue pill). when I started, I learnt from some tutorials that I have to switch a ...
7
votes
4answers
4k views

What's the best bootloader for an embedded Linux board?

I'm designing an embedded Linux board for use as a web-based controller. It will be based around an Atmel AT91SAM9G20, which uses an ARM926EJ-S core. Anyone have particularly good or bad experiences ...
7
votes
2answers
995 views

When to use an Arduino bootloader

I need to make a robot within a month for a competition. I used to use Arduinos for my projects, but graduated to just flashing code with avrdude to standalone AVR microcontrollers. I was thinking, ...
7
votes
1answer
7k views

Running executable from external SRAM

I have an STM32 dev board with some external SRAM. I would like to execute my code from that external SRAM, but my processor only supports booting from the Flash, internal SRAM or System memory (a ...
7
votes
3answers
2k views

AVR self-programming

According to the datasheet, the ATMega168 can only execute self-programming instructions when running code from the bootloader block. Once the bootloader is complete and the application starts, can ...
7
votes
3answers
2k views

Arduino Bootloader

If I upgrade my arduino from the ATMega 168 to ATMega 328 will I be able to use the ATMega 168 like a stock chip from the factory or will the bootloader prohibit this? In other words, will I be able ...
7
votes
1answer
5k views

“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 ...
6
votes
2answers
4k views

Can I write a bootloader to Atmega using serial port

There is a really grand price difference between an empty Atmega328 chip and the one with the Arduino bootloader installed. In my country, this difference is 1:3. This means that uploading bootloader ...
6
votes
4answers
14k views

How do I know I have the right Bootloader Installed on my ATMega328P-PU?

I got an ATMEGA328P-PU , already bootloaded , but when I tried to upload the program (a simple program for blinking the LED on pin 13 ) I'm getting an error as : avrdude: stk500_getsync(): not in ...
6
votes
3answers
3k views

Bit bang ATmega328 with Arduino bootloader using AVRDUDE

I have an Arduino Uno development board with a blank ATmega328 chip (no Arduino bootloader. The chip that came with the unit is soldered in a separate stand-alone project so that I can use the Arduino ...
6
votes
2answers
2k views

How do I get started with uCLinux?

Right now I have ported an application from LPC2478 to Cortex M3 (LPC1788) and things are working fine at 120MHz. I am thinking of porting uCLinux to my LPC1788 custom board. The board consists ...
5
votes
4answers
5k views

How does a microcontroller load and execute a bootloader?

I know that for a regular PC, BIOS executes its handler of interrupt 0x19 to search for a bootable device and if a device is found, first 512 bytes are loaded at ...
5
votes
3answers
5k views

How to program a BeagleBone board?

Until now I used Microchip PIC, to program this microprocessor there is MPLAB. I would like to make a step forward and learn about other microcontrollers. I found the BeagleBone Black quiet promising ...
5
votes
3answers
5k views

AVR and bootloaders - where to begin?

I have the need to write a bootloader program on an AVR microcontroller (Atmega32) in order to enable self-programming. I have read various resources on the topic of bootloaders and have come to the ...
5
votes
1answer
2k views

What does the USB bootloader do in the PIC microcontroller

I was wondering what does a boot-loader do, there is one USB Bootloader for the PIC micro-controller and I was wondering as to what its purpose is. How is it different from creating some HID device ...
5
votes
1answer
150 views

Arduino bootloading

First of all I am new to Arduino so sorry if I am being a bit stupid. I want to use an atemga 328 32kb tqfp micro controller integrated on a PCB. I understand that the chip does not come with a boot ...
5
votes
3answers
1k views

bootloader application on arm controller

I am using a micro-controller with ARM Cortex M4 processor and developing a bootloader application on it. Compiler : GCC- GNU ARM compiler Code flash size : 1MB Interface for application code ...
5
votes
0answers
568 views

How would one clone a BeagleBone? [closed]

tl;dr: Assuming I'd had a BeagleBone perfectly manufactured from the open-source schematics+layouts, what would be necessary to get it to the same level of functionality as a newly-unboxed BeagleBone? ...
4
votes
3answers
1k views

Arduino Bootloader Follow On

Two parts: Is it possible to write an Arduino Bootloader for a Tiny AVR? Is it worthwhile to write a Arduino Bootloader for an Tiny AVR? (more subjective, contingent on 1) Regards, Vic
4
votes
3answers
3k views

Trying to flash STM32f030f4 (ARM, Cortex M0) - what is proper wiring?

I've got STM32F030F4 chips from shop, made a small breadboard adapter for it and tried to connect to its built-in bootloader via USART1. I've failed and I'm somewhat bewildered about wiring. My ...
4
votes
3answers
2k views

AVR- sending application program to bootloader

Now its time to send the application code to the bootloader, that's been programmed into an ATmega32A controller. It has to be sent in hex format, but I have no idea of "How to send it?" The hex file ...
4
votes
2answers
656 views

ARM Cortex M3 firmware

First some background information. There is one product (a sensor) bought from a far eastern manufacturer, bless their white cotton socks, that uses the STM32F103V microcontroller. The firmware that ...
4
votes
1answer
12k views

Writing bootloader for STM32 by C language in Keil

I want to write a bootloader for my MCU. It's an STM32F103RET6. I searched for information about writing a bootloader for it, but I couldn't find anything. Now I have these questions: Where can I ...
4
votes
2answers
602 views

AVR Bootloader Protection?

Is it possible for an out-of-control (e.g. due to stack corruption) user application to inadvertently invoke the bootloader sector code in an AVR (e.g. ATmega1284p)? Said differently, is it possible ...
4
votes
1answer
11k views

How to offset program location in memory with MPLABX XC8?

I have a bootloader residing at locations 0x0000 to 0x0fff on an 8-bit PIC18F. How do I tell the XC8 compiler to output a hex file which starts at 0x1000? With a CCS compiler my friend is using, he's ...
4
votes
2answers
11k views

Burn Micronucleus bootloader to use ATtiny85 via USB (AVRDUDE)

I am working on an ATtiny85 USB development board, and I need to flash the Micronucleus bootloader on it. I have heard that this bootloader allows the ATtiny85 to be programmed via USB from the ...
4
votes
3answers
3k views

ARM Linux and UBoot - Can I make a read-only MTD writable?

I have several embedded Linux devices installed at customer sites. We have an updated Linux kernel we are prepared to deploy to these devices. The problem is that on these devices, the U-Boot ...
4
votes
1answer
1k views

MSP430 Programming BSL vs Spy-Bi_Wire

Does an MSP430 (Specifically the LaunchPad F5529) retain its code which was transferred via the Spy-Bi-Wire (SBW) Port? Or do I need to use the BSL to program the chip? In layman's terms what is the ...
4
votes
4answers
1k views

How can I reduce the size of an AVR ethernet bootloader?

I am writing an ethernet capable bootloader for an AVR ATmega328 MCU. I am currently running over the 4k size limit and need some design advice. Bootloader requirements: Needs to be able to update ...
4
votes
7answers
14k views

ArduinoISP fails with Atmega368, 168 - Device signature = 0x000000

So, apparantly this is a common error, which many people have fixed many different ways, none of which have worked for me. I have two different Arduinos - an NG and an Uno, with an Atmega168 and 328 ...
4
votes
2answers
2k views

ATmega32u2 fuse bits - can destroy using FLIP?

I want to build some simple application using ATmega32u2, and have it programmed strictly only via USB, by using the factory-builtin USB bootloader on µC, together with the "FLIP" program ...
4
votes
1answer
3k views

Writing the bootloader program into ATmega32A

I am in a need of programming a bootloader code written in C into the boot section of AVR ATmega32A using a serial programmer. I can't write the code directly into the boot section from Atmel studio. ...
4
votes
2answers
3k views

Installing a bootloader on an ARM Microcontroller

I have purchased this LPC1788FBD144,551 MCU and this LPC1313FBD48/01,15 MCU and I want to install a bootloader in assembly on them which can call a function in C. How can I install the bootloader on ...
4
votes
3answers
30k views

How to burn arduino mega 2560 bootloader?

I have my new Arduino Mega 2560 and I might have overwritten the bootloader when uploading another program through AVR studio. I really need advice and instruction of how to burn it using AVR Studio ...
4
votes
1answer
9k views

Arduino's “Upload Using Programmer” for ATmega328 (not ATmega328P)

I am using the the Atmega328 (not the Atmega328P that is standard with Arduino) on a breadboard version of the Arduino. I am able to get the bootloader on the Atmega328 using these instructions. In ...
3
votes
3answers
7k views

Programming STM32: JTAG/SWD vs bootloader

I'm making a PCB for a personal project using the STM32L031K6T7 microcontroller. It looks like this uC has a bootloader that can be used to reprogram the flash program mem through UART or SPI. It also ...