ACL peripheral cannot be used in main processing

Hello.

I am trying to write protect the Flash area using nrf52840's ACL peripheral.
I tried to perform the same process on the main processing side by referring to nrf_bootloader_flash_protect() in nrf_bootloader_app_start_final.c, but an exception occurred when writing to the ACL register? will occur and the process will be interrupted.
Is it not possible to use ACL peripherals after finishing startup processing and moving to main processing?
Please note that I understand the following points:
・ACL registers can only be written once
・The only way to cancel the setting is to reset it.

thank you.

Related