nRF Connect SDK API 2.8.99
|
int fprotect_area | ( | uint32_t | start, |
size_t | length ) |
#include <include/fprotect.h>
Protect flash area against writes.
[in] | start | Start of range to protect. |
[in] | length | Length in bytes of range to protect. |
0 | On success. |
-EINVAL | If any of the argument are incorrect. |
-EFAULT | If the protection was not applied properly. |
-ENOSPC | If function is called too many times. Applies to devices where there is a limited number of configuration registers which are used for all address ranges. |