2023-10-26 11:54 PM - edited 2023-10-26 11:55 PM
Hello
I am trying to flash code using openocd(through JTAG) in option byte RDP protection level is set to AA(0) but still openocd throwing error memory is write protected can not write on address 0x8000000.
Hardware : STM32WB55 Nucleo board
Openocd Version : 0.11
if anyone know the reason then please let me know.
Thanks in advance
Dinesh Bisen
2023-10-27 07:05 AM - edited 2023-10-27 07:12 AM
Hello @DineshB,
Thank you for your question.
The FLASH pages can also be protected against unwanted write (WRP) due to loss of program counter context.
The user area in flash memory can be protected against unwanted write operations. Two write-protected (WRP) areas can be defined, with page (4 Kbytes) granularity. Each area is defined by a start page offset and an end page offset related to the physical flash memory base address. These offsets are defined in the WRP address registers Flash memory WRP area A address register (FLASH_WRP1AR) and Flash memory WRP area B address register (FLASH_WRP1BR).
Best Regards,
Pierre
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.
2023-10-29 11:23 PM
2023-10-29 11:40 PM
2023-10-29 11:45 PM
Dear @Pierre_Paris
I have uploaded photos of WRP1A and WRP1B start and end address values please let me know what's wrong with this value i have tried WRP1A_STRT = WRP1A_END and WRP1B_SART = WRP1B_END but still facing the same issues.
2023-10-30 02:04 AM - edited 2023-10-30 02:04 AM
Hello @DineshB ,
Here are some remark you can investigate :
Best Regards,
Pierre
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.
2023-11-14 10:02 PM
Dear @Pierre_Paris
2023-11-20 02:33 AM
Hello @DineshB,
We can conclude there are no mechanism protecting STM32 flash, so the problem must come from somewhere else :
Best Regards,
Pierre
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.