cancel
Showing results for 
Search instead for 
Did you mean: 

WRP Configuration issue

Rakesh936
Associate II

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?

2 REPLIES 2
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.

Rakesh936
Associate II

Hi @Sarra.S 

I tried flashing the code with the above settings with the .hex file. I am using segger Jlink for flashing and Jflash tool. Even after flashing I am able to erase the flash. But I see WRP is detected in the device please check the snap for the reference. Can you please tell me how to flash using Jlink for WRP?. Thanks in Advance.