The MPU must be disabled to allow writing the option bytes. Also replacing flash_write_protection_set with direct register access because it will be deprecated in Zephyr v2.6.
The MPU must be disabled to allow writing the option bytes. Also replacing flash_write_protection_set with direct register access because it will be deprecated in Zephyr v2.6.