Hi,
I would like to enable the APPROTECT readback protection.
What is the advised way to do this when using nrf connect/zephyr? The following line doesn't work (the 'at' attribute is ignored):
const uint32_t approtect_set __attribute__((used,at(0x10001208))) = 0xFFFFFF00;
I'm thinking this could be fixed by using a 'section' attribute, and define a section in the linkerscript, but I'm not quite sure how to do that using the ncs toolchain. Think the partition manager is involved (maybe i need to define a section in my pm_static.yml file)?
I could let the application write this register, then reboot to activate it, but I'd prefer the 'at'/'section' method if possible.