Skip to main content
Associate II
July 16, 2025
Question

WRP Configuration issue

  • July 16, 2025
  • 2 replies
  • 353 views

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

ST Employee
July 16, 2025

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

Rakesh936Author
Associate II
July 17, 2025

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.