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

◆ nrf_rpc_rram_wear_test()

int nrf_rpc_rram_wear_test ( size_t index,
uint64_t addr_start,
uint64_t addr_end,
bool force )

#include <include/nrf_rpc/rpc_utils/rram_wear_test.h>

Run write/readback verify on a selected remote flash region.

Parameters
indexPartition index from the array.
addr_startOptional start offset for a custom range (used if addr_end > addr_start).
addr_endOptional end offset (exclusive) for a custom range.
forceMust be true for custom ranges or -EPERM is returned.
Return values
0on success.
-EPERMif region is custom and force is false.
-EINVALfor invalid arguments or an out-of-bounds custom range.
-ENOENTif the named partition is not present in the build.
-ENODEVif the flash device cannot be resolved for a custom range.
Othernegative errno from flash operations, or -EIO on verify mismatch.
-EBADMSGif the RPC response could not be decoded.