PAC55xx protection

I am currently using the PAC5523 chip. It seems to have entered protection level 1, with the Security setting being 0xFE.
How can I change the protection level of the chip to 0 and restore it to 0xFF?
I attempted to send FLASH_START_MASS_PROG_INFO_ERASE to restore, but it didn’t work. Could you provide me with a manual on locking and unlocking or a complete SDK?
The functions in the “code_protection” section are too simple.。

Hello,
For your question of code protection, you could refer to the chapter 6.5.1 of PAC55XX family user guide.
The protection level should be reset to 0 when you call the code flash_erase_key(FLASH_START_MASS_PROG_INFO_ERASE);
We have the code_protect_app in the example code and you can download it from our website: PAC5523 - Qorvo
You can first go to config.h and do the configuration as below and then flash it on the board to test.


If you have further question, please let me know. Thanks.

Heng