cancel
Showing results for 
Search instead for 
Did you mean: 

WRP Configuration issue

Rakesh936
Visitor

Hi,

I was trying to configure WRP protection in the flash for page 0 to page 11 and I am using STM32L443VC MCU.

But I am seeing different value in the FLASH_WRP1AR for WRPstartoffset = 0x80 --Expected(0x00). Please find attached snapshot for the reference. Please do check the code snippet as well and let me know any configuration am I missing?

1 REPLY 1
Sarra.S
ST Employee

Hello @Rakesh936

You must set the FLASH_WRP1AR register fields as follows:

  • WRP1A_STRT: 0x00 (start offset for page 0)
  • WRP1A_END: 0x0B (end offset for page 11)

After that, you must reload the option bytes by setting the OBL_LAUNCH bit in the flash memory control register.

This step is essential for the new WRP configuration to take effect.

Also, make sure RDP is not set to Level 1 if you need to modify flash

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.