Questions tagged [bootloader]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
62 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
75 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
51 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, if the write protection is on, it wanna erase all of the memory. Probably because of program drop the security level so MCU erase all of the data. But ...
0
votes
0answers
40 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
47 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
40 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
58 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
67 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
70 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
109 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
77 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
117 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 ...
0
votes
1answer
66 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
41 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
72 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
83 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
56 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
382 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
170 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
63 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
202 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
54 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
126 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 ...
0
votes
0answers
11 views

Issues with ISP Mode LPC 17XX

I have custom board utilising an LPC 1778 and I'm having issues entering ISP mode, or at least I think I am. I am using the ISP pin and the reset in to enter ISP mode. By holding the ISP pin low and ...
1
vote
1answer
120 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
69 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
63 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 ...
0
votes
0answers
66 views

How to Bootload a custom STM32L4 Board?

I have designed my first custom board in KiCAD using STM32L452RE and I am planning to program using ST-LINK via SWD Pins but I am not familier with the process of bootloading the MCU. How can I ...
0
votes
0answers
122 views

How do you use a EZP2019+ programmer with an ATTINY85 with avrdude?

I need to burn micronucleus on the ATtiny and only have an EZP2019+ programmer and I also need to set the ATtiny to 16MHz clock speed, how do I do that?
1
vote
1answer
56 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
vote
1answer
93 views

Saving a variable between reboots on a microcontroller without using flash memory

I am developing a bootloader and have some trouble jumping from the bootloader to the application. As far as I can see the problem is because I am doing certain initializations in the bootloader which ...
1
vote
0answers
226 views

Arduino Bootloader for ATmega168PA

I have burned an arduino bootloader to an ATmega168PA. I want to use the internal 8MHz oscillator for the ATmega, and I used an arduino Uno as an ISP. For that, I did the following: Created the ...
0
votes
2answers
70 views

Can an ATMega328p be bricked such that it cannot be programmed but still works?

I cannot update the program on my ATMega328p-AU (with the old version of the Arduino nano bootloader burnt to it). Oddly enough I can still talk to the program running on the uC (query and read out ...
0
votes
0answers
204 views

Programming issue when uploading bootloader to samd11 via OpenOCD on RPI

I'm attempting to flash a bootloader on to an atsamd11c14a using openocd on an rpi model 3b+ but encountering some trouble. No issues on installing openocd (following adafruit's guide) and I believe ...
2
votes
1answer
122 views

Stack error when jumping from bootloader to application

I have been trying to jump from my bootloader to an application for a while now but I can not figure out what is going wrong. I am hoping someone here might be able to help me. I am using Texas ...
1
vote
0answers
69 views

Imprecise bus error when setting Vector Table Offset Register. TI CC2652

I am developing a bootloader and want to jump to the application. I am new to this so I am not entirely sure I am doing it right, but as far as I know I have to change the value stored in the VTOR (...
0
votes
0answers
42 views

Speed up OTA time for MCU

I'm trying to update the code on a STM32F407vgt06 mcu using OTA. Using python code, the new program is sent in packets of 128 bytes through MQTT and the bootloader on the mcu checks the crc and then ...
1
vote
0answers
50 views

Relocation in MPLAB IDE X

I'm writing a bootloader for ATXMEGA256A3U. At page 14, Table 7.1 of the datasheet I know the bootloader address start at 0x20000. Using AtmelStudio I set in the linker option the following ...
3
votes
0answers
105 views

How can I setup a shared library between a bootloader and an application?

I am in the process of implementing over-the-air updates on a CC2652 microcontroller using the OpenThread stack. As far as I know a bootloader has to be able to operate independently from the ...
0
votes
1answer
83 views

Flash memory to hold flags

I'm trying to write bootloader code and I needed to be able to use an address in flash memory as a flag to the bootloader to let it know if it should enter bootloader or the application. I'm able to ...
1
vote
1answer
2k views

STM32 Custom Bootloader Jump to Application

I wrote a custom bootloader for the STM32F4 microcontroller and I'm able to write an application to the flash memory at the address of 0x08008000. The issue I have is when I use the jump function the ...
0
votes
1answer
73 views

STM32 Bootloader config. and datasheet discrepency

I have 4 quick questions regarding the bootloader/programming the STM32L0 chip series. Q1&2 I'm considering a STM32 project coming from ATMEGA chips. From my understanding, the chips come with a ...
2
votes
2answers
117 views

Getting started with AVR programming concepts

I am trying to get started with programming the AVR. I have chosen to use Atmega328P (which is in my Arduino Uno). When I did web search regarding the initial steps for learning the AVR programming, I ...
1
vote
0answers
557 views

STM32 standard method for remote firmware update

My question is about a special case for Bootloader sequence for The Discovery kit for STM32F0 series with STM32F072RBT6 MCU that we currently have implemented in some of our products in the field. I ...
0
votes
0answers
155 views

understanding bootloader with linker

I'm using chip SAMD21G18 SAM-BA bootloader Bossac code I'm looking at how bootloader works. but found some questions that i cant get an answer for: looking into source code of PC client software (...
0
votes
1answer
264 views

Why did my Atmega328p chips stop working?

I am fairly new to embedded programming. I bought some Atmega328P U chips (not Atmega328P-PU). I have two Arduino boards and the chips worked just fine, and were letting me upload sketches. One of ...
0
votes
1answer
92 views

How to enter bootloader on a Embedded Linux System with no keyboard? [closed]

I am trying to reflash a microcontroller. An instruction in the manual states that: Power up the owa4x and press the space bar to enter the bootloader prompt Insert the uSD card with the ...
0
votes
0answers
43 views

STM32F030CCT6 BOOT

Im doing my first schematic with STM32. I want to use STM32F030CCT6. However im not really sure what to do it's BOOT0. I have googled STM32 schematics and they all have BOOT0 and BOOT1. Mine have only ...
0
votes
3answers
1k views

bootloader jump to application address problem

I have written a bootloader for my board, but it generates a hard fault when it jumps to the application code. My error is like this question: Bootloader jump to main application problem using STM32 ...
0
votes
2answers
409 views

IAP bootloader not jumping to the application address

I am working on IAP in STM32F4. I received .bin file using uart and flash it in 0x08004000 address successfully and disable irq , set msp , set vector, deinit hal , reset the systick registers but the ...

1
2 3 4 5 6