Questions tagged [bootloader]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
28 views

How to flash a bootloader to a ARM MCU from the factory?

I want to build a custom PCB with a ATSAMD21G18A-AU Micocontroller, which has a ARM® Cortex®-M0+ processor. I will get it from LCSC, so it doesnt has any bootloader preinstalled. Right? In the end I ...
1
vote
2answers
64 views

Attiny85 Burn Bootloader Error [Device signature = 0x000000] [SOLVED]

I had read in different forums about similar issues and double-check the connections and datasheet. But it's still not working for me. First of all, I will share my build and my configuration. Later ...
2
votes
0answers
50 views

Problem with bootloader application for PIC18F452

I want to program my PIC18F452 from long distances using a SIM808. By searching on the net I found out that I should write two different programs: a bootloader program and the main program. For the ...
0
votes
1answer
37 views

COM port not recognised by bootloader application PIC18F452

I want to program my PIC18F452 from long distances using a SIM808. by searching in the net I found out that I should follow this procedure: I should write two different programs in the micro: a ...
-5
votes
3answers
80 views

What is the bootloader function in Microcontrollers? [closed]

In PC Bootloader is necessary to show where BIOS is located in memory, and then BIOS starts actual operating system etc. But how is situation in embedded, where MCUs actually usually don't have ...
2
votes
1answer
53 views

STM32 bootloader break at address issue

I am writing a small application to start a bootloader that checks simple conditions and then jumps to the application memory. The application seems to crash and I am unable to figure out the reason ...
1
vote
1answer
85 views

STM32F103: Custom bootloader weird behaviour with stack pointer

So, I am trying to use this USB mass storage bootloader for the STM32F103C8 (64kB flash): https://github.com/sfyip/STM32F103_MSD_BOOTLOADER To compile .hex files for it, I've already set the flash ...
2
votes
0answers
46 views

New ATSAMD21 chip, flashed Bootloader OK, but USB Device doesn't show up

I'm trying to build my own custom PCB based on an ATSAMD21E chip. I made a PCB breakout for the ATSAMD21E that just supports the reset button, a 3.3V voltage regulator, and a couple of capacitors. ...
1
vote
0answers
56 views

Teensy++ 2.0 doesn't jump into bootloader using software

I have a Teensy++ 2.0 with 90USB1286 CPU running QMK. I'm trying to make it jump into the bootloader using the QMK software. I tried two approaches: Mapping a RESET...
2
votes
1answer
71 views

Roll out software update to multiple STM32s from a TCP/IP connection to PC

This is more of an "is this possible" kind of question, I'm not looking for a detailed step by step, more of a go ahead before I pull the trigger on all of the parts. I am in the design ...
1
vote
1answer
34 views

FT230XS is not in sync when trying to burn bootloader

I want to use FT230XS IC to translate UART to USB, as a cheaper alternative to FT232RL, which I use for years now. The MCU I use is an Atmega328p-au (so the same configuration as an arduino), and I ...
1
vote
0answers
174 views

Sometimes can't leave USB DFU bootloader

I have an STM32F072 and am using the built-in bootloader (see AN3156) to flash it via DFU over USB. Flashing works fine, but often it fails to leave the bootloader afterwards. I am using ...
0
votes
1answer
73 views

Where is the BOOT1 pin on the STM32F030C8 microcontroller?

The datasheet and reference manual for the 'STM32F030x4 STM32F030x6 STM32F030x8' series states that both BOOT0 and BOOT1 pins control the boot mode: However, neither the reference manual nor the ...
3
votes
3answers
476 views

How we can share a function between main application and bootloader?

I am using STM32F4(ARM-Cortex M4). I want to share a function between main application and bootloader without redefine that function, for example imagine that i wrote a print function in main ...
0
votes
1answer
64 views

Running Giant Gecko (EFM32GG11) bootloader-uart-xmodem software example

I'm new to Silicon Labs products and Simplicity Studio and was wondering if someone would walk through some basic steps to running the example serial UART bootloader on a Giant Gecko using the ...
0
votes
0answers
60 views

DDR3 configuration on custom board

I have a custom board with a new platform which does not have any tool to configure the DDR setup( I asked). I have the Source code for the uboot.config (CONFIG_DDR.c, CONFIG_DDR.h etc). So I have to ...
-1
votes
1answer
73 views

Serial AVR programming and doubts

I currently have Attiny85 , attiny45 , atmega328 , 8051 MCU . I want to program them in a chipless method ( which doesn't use any intermediate chips to burn program or bootloader ) - this is like a ...
0
votes
1answer
105 views

Debug STM32 with Nucleo

Would it be possible to debug/program another PCB including an STM32 MCU with the debug connector provide on the Nucleo-G474RE? (I don't have an external programmer yet) What would you recommend for ...
1
vote
1answer
125 views

Is factory burned bootloader required to communicate with ROM for NuvoTon w78E052D (8051)

This article on 8051 based NuvoTon w78E052D says: The nuvoTon w78E052D controller comes with UART boot-loader and can be directly programmed from the serial port. The block diagram on NuvoTon ...
0
votes
1answer
51 views

ATmega 328p arduino bootloader factory reset cause

I am using an ATmega328p with an Arduino Nano bootloader on a custom board. We got recently an issue where the bootloader got reset. I need to return the bootloader and then the firmware in order to ...
2
votes
1answer
105 views

Rewriting Code in Internal Flash in STM32F439 [closed]

I am using the STM32F439 and looking to find a way to write code in the internal flash. Is there a protected area for quality assurance and security? It's supposed to be used for company's ...
1
vote
0answers
86 views

STM32F101C8T6 Bootloader Application

I have my application bootloader appilication ...
1
vote
1answer
63 views

Changing Bootloader settings using HEX file in atmega328P

I am using atmega328P IC in my project. Currently my process to upload a code is to burn the bootloader according to my requirements and then upload using programmer USBasp . Now from what I read is ...
0
votes
1answer
67 views

Strange behaviour Raspberry Pi 4

I am powering raspberry Pi using GPIO no 2, 4, and GND as recommended. The Pi only shows RED constantly ON led and does not boot. However, if I connect the USB power source it boots up. The power ...
2
votes
3answers
97 views

Bootloader for MCU

Is bootloader a must and should be required for flashing a program hexcode into MCU? If yes, how would a factory fresh MCU be loaded with a bootloader hexcode? Is it simply a memory write operation?
0
votes
0answers
134 views

STM32: Is it possible to write data to flash memory by using system bootloader when write protection is on?

When I try to program with STM32 flash loader and if the write protection is on, it want erase all of the memory. Probably because of program drop the security level so MCU erase all of the data. But ...
0
votes
0answers
43 views

Programming a bare ATSAMD21E18A, no external oscillator

EDIT: I got this working, seems that the uC is sensitive to bypass caps. I had caps on my solderless breadboard and decided to solder on some surface caps right at the pins on the breakout board. That ...
0
votes
1answer
412 views

Program STM32 MCU with SWD by default as alternate function

I want to use my first STM32 MCU in the project. The project involves a few peripherals (UART/SPI/I2C) and has a bit of math to do here and there, mainly bit shifting and/or integer computations, so I ...
0
votes
0answers
143 views

Error with no description with compling a project in MPLAB X - might be HEXMATE problem

I've got a project from a retired colleague that I'm trying to get up and going so I can make some modifications to it, but I'm having some problems compiling it. Below is the compiler, processor, and ...
0
votes
1answer
59 views

Find the size of a certain code block

I have an application with a BLE stack and I'd like to figure out how much space that stack uses up (more or less) in order to figure out if I have enough flash available to write an additional BLE ...
0
votes
4answers
146 views

Can I protect areas of a MCU's flash from reprogramming/reading by arbitrary code executing in that MCU?

Consider a microcontroller with self-programmable flash, for example some ATSAM MCU. I put a bootloader on it, which has the additional capabilities of receiving programs, ex. using USB, in whatever ...
0
votes
1answer
202 views

ATMega328P - How to protect application flash memory from reading by ISP

I created boot-loader code for reprogramming application section. I use Wiznet W5500 SPI to Ethernet chip, my goal is that only i can reprogram the device using LAN / WAN. The read write command is ...
2
votes
2answers
162 views

Booting multiple FPGAs using a single SPI Flash

I am using 3 Artix-7 FPGAs in my design. Is it possible to use single SPI configuration Flash to program 3 FPGA device. I have found information about multiple boots for one FPGA but not multiple FPGA ...
0
votes
0answers
137 views

Unable to flash stm32f103c8t6 after erasure, device shows 0 bytes flash size (custom bootloader)

I have flashed a dfu bootloader from https://github.com/davidgfnet/stm32-dfu-bootloader onto a fresh stm32f103c8t6 and it was working fine. After I uploaded my binary with dfu-util the device would no ...
0
votes
1answer
562 views

STM32WB55 Nucleo - FUS_STATE_IMG_NOT_FOUND error

I'm beginner to electronics. I'm trying to flash stm32wb5x_BLE_HCILayer_fw.bin v1.6 using STM32CubeProgrammer but got an error "FUS_STATE_IMG_NOT_AUTHENTIC", I tried older version but got ...
1
vote
1answer
104 views

Where would be the best place to start looking for information on developing a bootloader using 2 microcontrollers for a CubeSat?

I am an engineering student who has just begun working on a CubeSat project for my design class. We are working on the OBC, specifically looking at developing a bootloader at this time. The OBC ...
0
votes
1answer
106 views

Do I need USART1 to program the bootloader with STM32 - Or could I use SWDIO & SWCLK?

I have heard that if I buy an empty factory made STM32, it will come with no bootloader at all. To program that STM32 with a bootloader, I need to do that through USART1. And later when I want to ...
0
votes
1answer
170 views

How to program stm8s003f3p6 using UART?

I am new to stm8s series of microcontroller. I want to program stm8s003f3p6 via UART but there is no inbuilt bootloader in it. So is it possible to burn custom bootloader? How should I start? Is there ...
1
vote
0answers
138 views

STM32F105 bootloader: jump address problem, bootloader loops

Problem: The bootloader loops. I think there is a problem with the transfer address. The entry point of the main program is at: This is how the entry point to the main program looks like in the ...
0
votes
0answers
95 views

Upgrading STM32L1 firmware takes a long time

I have a STM32L152R8T6-A MCU. A new firmware is downloaded over HTTP (as a .bin file) and is stored in an external flash memory. After that a bootloader copies the new firmware into MCU flash (address ...
1
vote
0answers
950 views

How to uplad program into Arduino Nano Clone with CH340?

I've started to build a Arduino Nano with CH340g using this schematic: Which use the CH340 chip : With one difference, I've use SPI pin to program the MCU. I've uploaded OptiBoot to Atmega328 and ...
0
votes
1answer
321 views

How to make an Arduino (ATMEGA16U4) like, software USB to serial on Atmega8u?

I've start to build a project base on Atmega328 and I need to connect to it(via USB for availability of the USB port) for debugging (I prefer to debug it with serial communication), and I don't want ...
1
vote
1answer
67 views

Inconsistent bootloader failure ATMEGA328P

I am creating a wireless charger with a microcontroller on it. I have assembled 3 boards. One of them has a microcontroller that works fine - burns bootloader and uploads code sketch fine. However, I ...
0
votes
1answer
567 views

STM32 Unwanted Bootloader on first power-up

According to this, seems like stm32 boot process is as follows: Check if FLASH is blank. if yes, goto bootloader mode Check if BOOT0 pin is asserted. if yes, goto bootloader mode goto Program mode ...
0
votes
0answers
83 views

Why wouldn't windows load the WCID driver?

I'm developing an embedded device with a DFU compatible bootloader. Right now I can hold a button and enter the bootloader and download new binaries, but I thought I would make it more convenient for ...
0
votes
1answer
302 views

What is the value present at the first address of flash memory of stm32 for every firmware?

Every firmware of Stm32 microcontrollers, the first value is starting with 0x2XXXXXXX, while working with custom bootloaders, I found that this is an address on SRAM, 1)What is actually present at ...
1
vote
1answer
177 views

Unable to find COM for STM32

I developed a PCB for a project using STM32WB55 and after getting it manufactured I am trying to connect it to the computer using a Micro USB cable in order to run the code on it. However, when I ...
0
votes
3answers
84 views

Custom made PCB problem after lost power supply

I have 2 custom PCB which need to communicate via Spi. Communication works fine when I flash code and MCUs have stable power supply. After disconnecting from power supply and then reconnecting slave ...
0
votes
0answers
72 views

Trying to write u-boot to router flash "Connection closed by foreign host"

I am trying to write a .bin file to the flash memory of my router. I am following the steps as outlined here as I am using the exact same router and a raspberry pi as well. However, although I am ...
1
vote
1answer
82 views

Arduino Mega 2560 Bootloader Question

I'm building a specific PCB around the Arduino Mega 2560 platform. Based on the official Mega 2560 schematic, there is two microcontroller; the 16U2 and 2560-15AU. Both of them have their own ICSP pin ...

1
2 3 4 5 6