Skip to main content
DBroo.1
Associate III
September 26, 2019
Question

STM32G070CB: What are Flash Zones A and B?

  • September 26, 2019
  • 1 reply
  • 698 views

The HAL Manual for the STM32G070xx mentions OB_WRPAREA_ZONE_A and OB_WRPAREA_ZONE_B. The Reference Manual mentions Zone A and Zone B. But there is no mention of the difference between the two or when to use one vs the other. There are 64 pages of Flash in this part, so the 6-bits inside the FLASH_WRP1AR register are sufficient to address each page.

So when do you use Zone A vs Zone B? Maybe the better question is, what is Zone A and Zone B?

This topic has been closed for replies.

1 reply

TDK
Super User
September 28, 2019

It seems like you can configure zone a and b to what you want via the FLASH_WRP1AR and B registers. You might want to write protect part of the flash (zone a) and keep the rest open (zone b). This would let you do so. Up to you to configure the start/end of each zone.

Just a guess.

It might also be that these can be used to configure two write protected zones within the flash.

"If you feel a post has answered your question, please click ""Accept as Solution""."