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

◆ fprotect_area()

int fprotect_area ( uint32_t  start,
size_t  length 
)

#include <include/fprotect.h>

Protect flash area against 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.