Skip to main content
5548785250647385E12
Associate
July 28, 2019
Question

custom bootloader for STM32H7 erase FLASH less than 127Kb

  • July 28, 2019
  • 4 replies
  • 1210 views

hi, I am writing a custom bootloader and its only 20Kb in size, as per the STM32H7 datasheet it looks like I can't erase FLASH smaller than 128Kb, just wanted to confirm that in this case I have to waste rest of the sector data and allocate the full 128Kb for my bootloader?

Also I was planning to store data to FLASH as the STM does not have EEPROM, so does the same apply for doing this and I must use the entire 128Kb (full sector) to store 5Kb of data.

thanks for the help

This topic has been closed for replies.

4 replies

Uwe Bonnes
Chief
July 28, 2019

Yes, you need one sector of bootloader an one sector for EEPROm emulation.

Tesla DeLorean
Guru
July 28, 2019

There is likely an efficiency trade off between few large vs many small sectors in the array. And the process may be ill suited to EEPROM.

Make the loader more functional, or use the spare space for library functionality.

For the configuration space you could expand the life span by journalling the data across the whole sector.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Amel NASRI
Technical Moderator
August 1, 2019

Hi @5548785250647385E12​ ,

Please try to recover the original content of your question. This is a public community, and we need to keep it as it may helpful for others.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
Tesla DeLorean
Guru
August 1, 2019

Just ban/blacklist these people.. Give me a button, I'll do it myself.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
5548785250647385E12
Associate
August 1, 2019

hi everybody, thanks for bringing this up, have no idea what happened here, was editing the forum and the browser crashed, maybe it happened then, I have now copy pasted the same content.

also thanks to all for the answers.