cancel
Showing results for 
Search instead for 
Did you mean: 

Option bytes config issue

Rakesh936
Associate

Hi,

I am trying lock a portion of Flash memory using WRP(Write Protection). when I am configuring the Option bytes for WRP. I am using STM32L443VC MCU and I have multiple questions:

1. Which area to select WRPAreaA or WRPAreaB for page 0 to page 11 because there is no division of area given?

2. I am trying to lock from page 0 to page 11 in the flash memory but I am seeing different values even after OBL launch:

example: WRPStartOffset = 0x80  (Expected: 0x00)

                WRPEndoffset = 0x0B (Expected: 0x0B)

This is because in the reference manual I see FLASH_WRP1AR reset value is 0xFFXX FFXX and in the register value is 0xFF00 FFFF. If I use Register value got 0xFF0B FF80 instead of 0xFF0B FF00. if I assume 0xFF00 FF00 i am getting 0xFF0BFF00. Even I tried for different page offset still I am seeing Startoffset value different. Please check the attached snapshots for your reference.

3. I am using segger jlink to flash the code and Please let me know how to flash using jlink for option bytes.

Please find the attached documents for your reference.

 

1 REPLY 1
TDK
Super User

If you use STM32CubeProgrammer to set the same option bytes, does it work?

Does the code execute correctly, return HAL_OK, and launch option bytes?

If you feel a post has answered your question, please click "Accept as Solution".