cancel
Showing results for 
Search instead for 
Did you mean: 

Write protection issue

aravindpv
Associate III

Hi all,
I was doing a firmware update from my raspberrypi to my MCU through I2C, and I facing this write protection issue.
On initial flash with swd, I was flashing bootloader + main app to their required locations with their meta data like CRC program length into flash locations 0x08012810, 0x08012820 respectively. I am facing this issue while I try to erase and program new value "Write protection error at 0x08012800 - check flash protection settings".
Mcu used : STM32G070CBT6 (F: 128 Kb, R: 36kb), , Page size 2KB
Option bytes used : WRP1A_STRT = 0x3f WRP1A_END = 0x00, WRP1B_STRT = 0x3f WRP1B_END = 0x00 

1 REPLY 1
STOne-32
ST Employee

Dear @aravindpv ,

Can you share your bootloader version ? I would recommend to check these known erratas  described in AN2606 : 

 

https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

 

IMG_5399.jpeg

Let us know

STOne-32