Skip to content

Commit 5a6eb5c

Browse files
alxelaxrlubos
authored andcommitted
emds: clarify emds storing context
Commit adds clarification of emds_store usage. Signed-off-by: Aleksandr Khromykh <[email protected]>
1 parent 3bb330f commit 5a6eb5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/nrf/libraries/others/emds.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ This gives the following formula to compute estimated storage time:
177177
178178
Calling the :c:func:`emds_store_time_get` function in the sample automatically computes the result of the formula and returns 25360.
179179

180+
Data storing context
181+
====================
182+
183+
Despite that the :c:func:`emds_store` function blocks interrupts to prevent context pre-emption, it is recommended to call it from a context with the highest priority to minimize the chance of context pre-emption before the function starts executing.
184+
The EMDS “data storing finished” callback is invoked from the same context as :c:func:`emds_store`.
185+
If a radio is present, the :ref:`SoftDevice Controller <nrfxlib:softdevice_controller>` and the :ref:`Multiprotocol Service Layer <mpsl_lib>` must be uninitialized before calling :c:func:`emds_store` to ensure that no radio activity is in progress.
186+
180187
Limitations
181188
***********
182189
The power-fail comparator cannot be active when EMDS is used, as it will prevent the NVMC or RRAMC from performing write operations to persistent memory.

0 commit comments

Comments
 (0)