Skip to main content
srikanth
Associate III
January 8, 2020
Question

User space for storing some bytes in stm32h7 MCU in runtime

  • January 8, 2020
  • 3 replies
  • 684 views

hi,

i want to store some bytes ( 4 Bytes) of data in MCU flash registers in program run time .

In flash user locations are available or not. If available how can i assign the bytes to flash locations in run time.

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
January 8, 2020

The standard flash write methods work at run-time. The primary issues being you can only write once, the write stalls the processor, and the sectors are relatively large.

You can journal the writes all across the sector, and then find the last value written.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
berendi
Principal
January 8, 2020

H7 series MCUs come in 3 possible flash arrangements, which one do you have?

srikanth
srikanthAuthor
Associate III
January 23, 2020

stm32h750vit -> 128 KB Flash, 1MB RAM in this any direct or Specific user location to write the data