![]() |
S145 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
|
| uint32_t sd_flash_write | ( | uint32_t * | p_dst, |
| uint32_t const * | p_src, | ||
| uint32_t | size ) |
#include <nrf_soc.h>
Flash Write.
Commands to write a buffer to flash
If the SoftDevice is enabled: This call initiates the flash access command, and its completion will be communicated to the application with exactly one of the following events:
If the SoftDevice is not enabled no event will be generated, and this call will return NRF_SUCCESS when the write has been completed
| [in] | p_dst | Pointer to start of flash location to be written. |
| [in] | p_src | Pointer to buffer with data to be written. |
| [in] | size | Number of 32-bit words to write. |
| NRF_ERROR_INVALID_STATE | Power-fail comparator is enabled and a POFWARN event is pending. |
| NRF_ERROR_INVALID_ADDR | Tried to write to a non existing flash address, or p_dst or p_src was unaligned. |
| NRF_ERROR_BUSY | The previous command has not yet completed. |
| NRF_ERROR_INVALID_LENGTH | Size was 0. |
| NRF_ERROR_FORBIDDEN | Tried to write to an address outside the application flash area. |
| NRF_SUCCESS | The command was accepted. |