Skip to main content
gokhannsahin
Associate III
April 8, 2020
Question

Writing to another section of flash from write-protected area

  • April 8, 2020
  • 0 replies
  • 645 views

Hi everyone,

There is a section in Flash that I don't want to be written or erased, and I applied write protection for this section. The size of this partition is 10kB. So I set the WRP values to WRP1A_STRT = 0 and WRP1A_END = 4. Write protection worked correctly on the pages I wanted with these values. However, when I try to write from this section to another unprotected part of the flash, I always get an error and cannot write. My question is, isn't it possible for us to write to another part of the flash from a part that has write protection enabled? Or am I doing something wrong? By the way, the processor I use is STM32G474RCT6.

Thank you!

This topic has been closed for replies.