STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Why would FLASH_FLAG_PGPERR and FLASH_FLAG_PGSERR be set after a successful flash write, and at power-up before any flash write operations?

I've written a flash-based bootloader for the STM32F4 using the latest STM32CubeMX tool and its HAL libraries. I've avoided all the usual pitfalls (it's not my first bootloader), and my code works reliably. I'm not erasing my bootloader segment, writ...

SHers by Associate III
  • 2235 Views
  • 11 replies
  • 0 kudos

Resolved! flash_erase error: can not erase certain flash pages without error, however it is possible while debugging and stepping into every function

Hello,I am currently writing a program that will delete the bootloader, which is stored in 24 flash pages (Bootloader begins at 0x08000000, the program itself begins at 0x800C000).Pages 1-11 & 13-23 can be easily erased. Now the problem is, the page ...

she-peek by Associate II
  • 2292 Views
  • 10 replies
  • 0 kudos

L4 Flash erase issue

MCU is STM32L4R9 with 1MB. I'm having trouble getting the device to erase the upper half of the flash programmatically. Apparently the device ships with opt bytes set for dual bank.I connected the device to the STM32 programmer through USB and turn...

EFrie.3 by Associate II
  • 590 Views
  • 6 replies
  • 0 kudos

Place const at specific flash location

Hi everyone,I am developing a custom bootloader and before flash the new application image, the bootloader must ensure that the image corresponds to the board, so I think a simple way to do it is to store a specific value (constant uint32_t) into a s...