Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
2 answers
94 views

VTOR not found in STM32F030

when attempting to jump to the bootloader App code address on an STM32F030 microcontroller . I cannot find the vector table offset register. Can anyone provide guidance on how to successfully perform ...
Kishor Giri's user avatar
0 votes
0 answers
164 views

Why VTOR in stm32 is set `SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET` instead `SCB->VTOR = FLASH_BASE + VECT_TAB_OFFSET`

Why do we use OR instead ADD in this code? #ifdef VECT_TAB_SRAM SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #else SCB->VTOR = FLASH_BASE | ...
Neyaz Ahmad's user avatar
0 votes
1 answer
125 views

Can you skip the bootloader with GCC/Cortex-M0+?

I'm writing fairly simple production test application for a small ARM Cortex-M0+ controller ATSAMD20J16. I'm using Microchip (Atmel) Studio 7 for this purpose. This will have a bootloader in ...
Barleyman's user avatar
  • 165
0 votes
0 answers
441 views

Bootloader for ARM Cortex-M4F (SOLVED)

I'm trying to add a bootloader to an ATMEL ATSAME54N19A microcontroller (Cortex-M4F with 512 KB of flash). I'm using MPLAB IPE (Microchip's programming environment) and xc32 (Microchip's compiler ...
user3214726's user avatar
0 votes
1 answer
592 views

Bootloader Jump Function. How to Jump to the right Address?

I am trying to create a bootloader that jumps to my application code on a MKE02Z32VFM4 (KEO2 Series from Freescale). I am working with the Keil IDE 5 and the Armv6 Compiler v6.16. After Issuing the ...
Archy's user avatar
  • 31
5 votes
2 answers
1k views

setting stack pointer before jumping to app from bootloader

I am coding a bootloader for Nucleo-F429ZI. I have two different STM32 projects, one for the bootloader itself and an application to jump from the bootloader. Linker script for bootloader MEMORY { ...
h_enes_simsek's user avatar
3 votes
2 answers
527 views

Cortex-M0+ dual application/image linking

For most products, we implement a bootloader+application approach which uses an external SPI flash for storing different application versions. Upon startup, the bootloader checks if a new image is ...
bam's user avatar
  • 984
0 votes
1 answer
160 views

SAMD21 ecrypted firmware

I'am working on SAMD21, but now I'd like to implement the possibility to ecrupted firmware. Is it possible on the SAMD21? I find this pdf this is exactly what I want to do page 36 but this for SAM3/4 ...
simon's user avatar
  • 1,214
2 votes
1 answer
529 views

Cortex M7: Branch just after start

I'm using the ATSAMV71Q21B MCU which uses a cortex-M7 processor. In order to add redundancy, I would like to have multiple boot loader and enter to one of those boot loader just after starting the ...
Antoine Boré's user avatar
1 vote
0 answers
38 views

Flashed bootloader successfully but device doesn't show up in device manager

I've successfully compiled and flashed the arduino samd bootloader onto a custom atsamd21 board. I am using an external crystal oscillator (32khz) so I am not using the -DCRYSTALLESS option. Now that ...
user395980's user avatar
2 votes
2 answers
403 views

Bootloader Strategy for Corrupt Applications

I've implemented a bootloader for a Kinetis ARM Cortex-M4 microcontroller. The main application (starting at 0x10000) is re-programmed via the bootloader over a custom RS232 interface. I've ...
weblar83's user avatar
  • 721
1 vote
1 answer
333 views

Mysterious memory write protection

I'm implementing a serial bootloader on an ATSAME51N20A (Cortex-M4). I'm reading in packets over UART, and writing them to internal flash. For some memory addresses the flash writes work fine, and for ...
Peter Kapteyn's user avatar
0 votes
1 answer
595 views

Bootloader and main application to share common code/functionalities

I'm struggling with a question in which I would like to get some help... I have a Bootloader which can upload another application into my chip. In my case the Bootloader and the main application ...
colin.diez's user avatar
1 vote
1 answer
1k views

How can I debug a bootloader and application in the same GDB session on Cortex-M devices?

Classic setup: There is a bootloader, and application, compiled separately. If everything is right, the bootloader jumps on the application. I attach a probe, run the gdbserver, start gdb with the ...
Atilla Filiz's user avatar
  • 2,412
2 votes
2 answers
1k views

Cortex M3 jump from application back to bootloader and back to application

I have a bootloader and a firmware where the initial jump from bootloader to firmware works like a charme but when I have the scenario jumping back from application, make some stuff and jump back to ...
Stephan's user avatar
  • 23

15 30 50 per page