2025-07-16 2:51 AM
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?
2025-07-16 3:07 AM
Hello @Rakesh936,
You must set the FLASH_WRP1AR register fields as follows:
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.
2025-07-16 8:34 PM
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.