nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ fprotect_area_no_access()

int fprotect_area_no_access ( uint32_t start,
size_t length )

#include <include/fprotect.h>

Protect flash area against reads/writes.

Parameters
[in]startStart of range to protect.
[in]lengthLength in bytes of range to protect.
Return values
0On success.
-EINVALIf any of the argument are incorrect.
-EFAULTIf the protection was not applied properly.
-ENOSPCIf 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.