STM32WB55 Unlock "Security Configuration Option bytes - 2"
Hello,
I have some trouble with a STM32 MCU.
I was playing with the radio firmware and delete it.
From now on, I'm unable to reprogram it, I always get this kind of error ( FUS_STATE_ERR_UNKNOWM) :

FUS seems to be in bad state :

By comparaison with a working board, I find that a secure flash address has been configured to this MCU and it overlap the FUS/radio firmware address :

Now I'm trying to revert back this value to the factory 0xF4 value but I'm unable to do so.
STM32CubeProgrammer won't accept to modify bits in the security option 2.
Even with the factory reset command using STM32_Programmer_CLI software it didn't work (I don't remember the exact command)
I checked the datasheet and find that I needed to enter keys to unlock these bits but either using the STM32_Programmer_CLI :
STM32_Programmer_CLI --connect port=SWD -w32 0x58004008 0x45670123
STM32_Programmer_CLI --connect port=SWD -w32 0x58004008 0xCDEF89AB
STM32_Programmer_CLI --connect port=SWD -w32 0x5800400C 0x08192A3B
STM32_Programmer_CLI --connect port=SWD -w32 0x5800400C 0x4C5D6E7F
STM32_Programmer_CLI --connect port=SWD --optionbytes SFSA=0xCE
or trying some code
FLASH->KEYR = 0x45670123; // set Flash key to allow writes to FLASH_CR
FLASH->KEYR = 0xCDEF89AB;
FLASH->OPTKEYR = 0x08192A3B;// set Flash optkey to allow writes to FLASH_OPTR
FLASH->OPTKEYR = 0x4C5D6E7F;
FLASH->SFR |= FLASH_SFR_FSD_Msk;
It didn't work at all, either command is not accepted, either, the software end up in an interruption
Is there any one who have any clue ?
Thanks
