Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bootloader]

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

0
votes
1answer
33 views

STM32 bootloader protocol

I am attempting to update the application code on an STM32 chip programatically from another chip. I have an Intel format hex file generated from the build process and I would like to use the ...
2
votes
2answers
77 views

STM32 programming and BOOT0 pin

I am developing a STM32H7 board which will be programmed via SWD. I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND? I won't be using the ...
-2
votes
0answers
34 views

Adaptation of “Working with bootloaders on Cortex-M devices” whitepaper from Atollic

I am working with Atollic TrueStudio on STM32F469 target. I have followed instructions from the tutorial "Working with bootloaders on Cortex-M devices" by Atollic. I want to adapt the bootloader ...
1
vote
2answers
85 views

STM32 Bootloader: How to ensure only uncorrupted firmware boots

I have a custom board with an STM32F407 on it. As SWD is not available, I have to program the microcontroller through the UART bootloader. Imagine that the folllowing sequence of events takes place. ...
1
vote
1answer
69 views

STM32WB55 Nucleo bluetooth stack firmware binary in bootloader mode

I want to upgrade the firmware for the bluetooth stack on the STM32WB. It requires the device to be in boot loader mode and power from the user USB not ST-LINK usb. However I've not programmed a ...
0
votes
1answer
50 views

ATMEGA328p-AU BootLoader

I have ATMEGA328P-AU chip, to burn the bootloader I used ARDUINO Uno Board as "ARDUINO as ISP" with setup Board: Nanno. I'm getting the following error. While looking for the solution I got ...
0
votes
1answer
34 views

Separate Vector Table for USB Bootloader (Infineon 4400-CortexM4F)

I am developing a USB bootloader for Infineon XMC 4400 micro . I have modified linker_Script.ld file and have allocated 32K for flash. MEMORY { ...
2
votes
4answers
121 views

Cortex M3 reset handler with vector table relocation

I have a system with an STM32F103, which has a bootloader and a main app. Now, the main app is offset from the beginning of the flash to make room for the bootloader, and on cold boot the firmware is ...
1
vote
2answers
25 views

How to enter into ISP mode through 'reinvoke ISP' in LPC1759

In LPC1759, I entered ISP through "reinvoke ISP" with the following steps Disable PLL Reset timer 1 Re-map interrupt vectors Set watch dog timeout Reinvoke ISP After entering into ISP, What exactly ...
1
vote
1answer
81 views

Is it possible to replace STM32F407 Internal Bootloader

I am new to the STM32 world. I know that all STM32 MCUs come with an internal bootloader. Is it possible to replace it with custom boatloader?
0
votes
1answer
50 views

How to Update firmware of microcontroller using DALI lines of a DALI slave module?

I have developed a DALI slave module with PIC 16F18326 microcontroller. Now, I want to make a Bootloader for this PIC. But the problem is, I don't have a serial communication or USB connection with ...
0
votes
0answers
11 views

Debugging in the Code Composer Studio v6.2.0

I would like to ask you for an advice. I have a custom control board with TMS320F2808 dsp. The dsp contains in its flash memory custom bootloader and application. I need to debug the application in ...
0
votes
1answer
79 views

STM32L073xx Internal Bootloader - Disabling Read Protection bricks device

I would like to continue what I started here about internal bootloader. Now I would like to add read protection to my uC. Connect uC via UART2 to PC Trigger jumping to internal bootloader by ...
0
votes
1answer
50 views

AVR Bootloader write: How to write a bootloader page address and execute SPM instruction in C code

I want to write bootloader for avr atmega328p in C language. I want to perfom a page erase: So I have to write the address of the z pointer. // Don't know how to implement in c code; Then make SPMEN ...
1
vote
1answer
98 views

STM32L073xx Internal Bootloader - Get Flash Size issue

I tried recently to develop custom app flasher (based on stm32loader python module) for STM32L073xx microcontrollers but I stuck at one point. This lib tries to obtain flash size from micro because ...
2
votes
2answers
263 views

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 ...
1
vote
0answers
36 views

nRF52 Bootloader over ESP12E

I'm using nRF52 DK with 14.2.0 SDK. I created a LED blink project for testing and extract its HEX file. I uploaded the program to the nRF52 over USB (J-Link-Keil IDE) and the HEX file over ESP12E (SWD)...
0
votes
1answer
50 views

Voltage tolerance of STM32F3xx boot pin

I'm trying to understand the default voltage tolerance of the boot pin(s) used to power up into the system bootloader of an STM32F3xx. I want to power my whole ...
0
votes
2answers
240 views

Generate and flash a binary file for STM32

I created a bootloader image for my STM32 and I stored it in a specific area of the memory. I have a new Keil project which represents the application layer. By default, Keil generates a HEX file. ...
0
votes
1answer
405 views

STM32L011 jump to bootloader from user code

I'm trying to make it so that my STM32L011 can jump from user code to the ST bootloader that allows flash to be reprogrammed over USART2. This is hypothetically the same question as STM32F091 Jump to ...
1
vote
1answer
55 views

How to burn bootloader to ATmega 2560 using Atmel Studio and AVRISP mkII?

Although my question might come familiar to many Arduino developer including me, but, I am somehow lost burning bootloader to ATmega 2560. Many comments I found were related to AVRDude (never used ...
1
vote
1answer
123 views

What are the possible boot modes in the S32K146 (NXP S32K Series MCU)

I have been investigating S32K146 MCU boot modes and possible mode selection options. I am interested to know the possible boot modes and how it can be set up. From datasheet (Page -92): It can be ...
0
votes
1answer
68 views

dsPIC33: Bootloader is flashing but resets when GOTO firmware

So I'm working on a bootloader for a dsPIC33EP32MC504 with a CAN-Bus and the Bootloader flashes the firmware correctly. I verified that by reading out the program memory at the location I flashed it ...
0
votes
2answers
138 views

Booting from SD card in SPI mode

I want to boot an ARM Linux board (Allwinner H3 for example) from a generic (micro) SD card through an SPI interface. Can an SD card accept SPI communication right away or is there any "SPI mode ...
0
votes
2answers
95 views

Atmega 8 on Arduino Uno

For a uni project I am tasked with programming embedded C onto an ATMEGA 8 uC, and there aren't enough development boards for everyone to use at uni, so I have an ingenious solution. I have several ...
2
votes
1answer
198 views

Atmel Chip not recognized as USB device. How to troubleshoot

I've soldered the AT90USB1286 Chip on a PCB like on this circuit: Imgur If I measure the pins, caps, resistors etc. with a multimeter, everything seems to be powered and fine. Reset button pulls to ...
0
votes
0answers
73 views

Loading program on LPC1768 dev board

I recently purchased a rather inexpensive LPC1768 development board from dx.com. The board can supposedly be programmed via USB (in a similar fashion to the mbed). To open the device as a disk, you ...
0
votes
1answer
375 views

I can't flash my new ATMega328p with PL2303 USB-TTL converter

I've soldered my ATMega328p-au to a SMD to DIP board, and I've connected pins like this: USB | ATMega RX ---> TX TX ---> RX 5v ----> 5v GND -> GND and GND --> button --> RESET My USB-TTL converter ...
0
votes
1answer
55 views

bootloaders “reset memory mapping”

im looking into bootloaders and how they work this picture from application note by atmel for their SAM series bootloader "AP-Note_AT04189" so Stack pointer and reset? Stack pointer is an address of ...
1
vote
1answer
57 views

Analog Blackfin Processor Silicon Revision issue [closed]

Recently we got a large batch of ADSP-BF5346s that say they are Silicon Rev 3 but internally read as Rev 2. Is there a way for me to determine the Silicon Revision number on the rest of the shipment ...
0
votes
1answer
72 views

How to program ATmega8U2

I was given an ATmega8U2 chip by my friend and I have been doing a bit of research about it. It says it does not come with a pre-programmed with a boot loader, so I was just interested about how to ...
-4
votes
3answers
366 views
18
votes
4answers
5k 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 ...
2
votes
2answers
951 views

Upgrade user application using custom bootloader via UART (STM32)

I'm using an STM32L4 board and my flash memory looks like this: |______________ | | USER application | | |______________ |Vector table(UA) |______________ 0x8000 - 8000 | | ...
0
votes
0answers
70 views

ATMega2560 Bootloader help

I've got a board with an ATMega2560 that also has an SST25VF016B SPI flash memory. I'm trying to do an OTA bootloader. So what's happening is this: I'm hosting a new firmware binary in my server The ...
0
votes
1answer
140 views

FPGA and CPLD bootloader [closed]

Coming from the world of MCUs, I create bootloaders so that customers can update the firmware. Specifically, i'm talking about a USB bootloader to narrow down the many different mediums. How is this ...
1
vote
1answer
1k views

Remapping vector table in STM32F0 (no vector offset register)

I have written a bootloader before for a STM32 that had support for the vector offset and is easy peasy. For STM32F0xx using HAL I read I need to move the vector table to ram and copy from flash. I ...
1
vote
3answers
485 views

Combining a bootloader and user program into single flash-able binary

I want to flash the UF2 bootloader for SAMD21 MCUs together with a compiled binary of a user program onto a SAMD21 MCU. From what I understand how any bootloader works, the bootloader sits in a ...
0
votes
1answer
269 views

atmega32u4 reset, bootloader and fuses

I have a atmega32u4 from factory with dfu inside. The HWB is pull down, and RESET pin is pull up. The first USB plug, dfu programmer appears on my Linux box. I upload the firmware without problem. ...
0
votes
0answers
811 views

STM32L4 bootloader unable to enter application

I've been following bootloader guide here and trying to write a bootloader that simply turns an LED on when entering a pushbutton-induced performFirmwareUpdate(). I'm using the ARM GNU toolchain in ...
0
votes
0answers
58 views

PSOC 4 Bootloader will not work when P4[0] and P4[1] Connected to I2C bus

I have been desparately juggling the pin allocations on this project in the hope of freeing up the VREF pin, and thought I had managed to do so. Previously my system was successfully transmitting over ...
0
votes
1answer
152 views

Using Arduino as an I2C PSOC Embedded Bootloader Host (ISP)

I am working on a project which involves using an Arduino alongside several PSOC-049-42xxx chips. I want to be able to update the firmware on the PSOCs just by updating the hex file on the Arduino ...
4
votes
3answers
939 views

Vector table relocation in bootloader application

I've written a bootloader application for NXP Kinetis microcontroller. Following are the things I did to do the same: 1. Created a bootloader application in CFlash addresses 0x0000 to 0x8000 2. ...
1
vote
3answers
2k views

Atmega328 without bootloader [duplicate]

Atmega328 is available in market in two versions - With and without bootloader. All prefer the one with bootloader. What will be the advantages/disadvantages of Atmega328 without bootloader ? I read ...
0
votes
2answers
128 views

Programming PIC 18F4550 using Bootloader

I was looking for simple boot loader which can program my PIC 18F4550 using uart communication. What I saw in all serial port boot loader program is, they are changing configuration bits especially ...
0
votes
1answer
2k views

STM32F303 Readout Protection Level 1 - programs do not start at all

I never protect the FLASH memory but this time it is my client requirement. I have my own bootloader and the application ready. Everything works fine if the protection level is zero. But if I switch ...
0
votes
1answer
54 views

Firmware update and data exchange using ethernet

I use PIC18F97J60 because its built in ethernet controller to exchange data via lan cable. I want to update the firmware of the mcu using the same controller which means using bootloader for the ...
7
votes
3answers
5k 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 ...
3
votes
1answer
442 views

STM32F4xx bootloader & interrupts

I'm trying to write a bootloader for an STM32F4xx (currently for the STM32F429 discovery board). My application should start at address 0x08020000 while the bootloader starts at 0x08000000 (start of ...
1
vote
1answer
312 views

STM32L07xxx boot problems

I have created a design with an STM32L07xxx and an ATtiny that communicate with each other through UART. Unfortunately I forgot to include a pulldown resistor to the BOOT0 pin of the STM. The result ...