Question
OTA, Application Read Protection and PCROP
Hi, I have a project where I need to read protect my application code. The problem with RDP is that it would erase the entire flash (including OTA). I assume this problem is to be solved by using PCROP on the OTA code. I have attempted to protect the memory from 0x0800 0000 to 0x0800 6FFF using the following commands in STM32Cube Programmer CLI. This results in the OTA code not running at all and not being read/write protected at all. What am I missing?
SET PROG="C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin"
SET BIN=STM32WB55_OTA.bin
SET ADDRESS=0x08000000
SET LOC="%cd%"
cd %PROG%
STM32_Programmer_CLI.exe -c port=SWD -w ""%LOC%\%BIN%"" 0x08000000 -ob pcrop1a_end=0x0D pcrop1a_strt=0x00 pcrop_rdp=0
pauseThanks,
Daniel
