cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G070CB: What are Flash Zones A and B?

DBroo.1
Associate III

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?

1 REPLY 1
TDK
Guru

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".