cancel
Showing results for 
Search instead for 
Did you mean: 

Can we write 1 byte data into flash in stm32wb55

RBG
Associate II
 
2 REPLIES 2
Peter BENSCH
ST Employee

Hi, RBG,

the RM0434 describes the usage of the internal Flash memory. Section 3.3.8 provides useful information on the size of the data that can be written, e.g.:

The Flash memory is programmed 72 bits (a double word, 64 bits plus ECC, 8 bits) at a time.

Programming in a previously programmed double word is only allowed when programming an all 0 value. It is not allowed to program any other value in a previously programmed double word, any attempt sets PROGERR flag in the Flash memory status register (FLASH_SR) or Flash memory CPU2 status register (FLASH_C2SR), except when programming an already programmed double word with an all 0 value.

It is only possible to program a double word (2 x 32-bit data).

  • Any attempt to write byte (8 bits) or half-word (16 bits) sets SIZERR flag in the FLASH_xxSR register.
  • Any attempt to write a double word that is not aligned with a double word address sets PGAERR flag in the FLASH_xxSR register.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Groups of them anyway...

Perhaps if you're more specific about the end goal, you'll get some better answers / suggestions.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..