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

◆ pcd_network_core_update_initiate()

int pcd_network_core_update_initiate ( const void *  src_addr,
size_t  len 
)

#include <include/dfu/pcd.h>

Sets up the PCD command structure with the location and size of the firmware update. Then boots the network core and initiates the update procedure. The function will return before the update procedure on the network core has completed or failed, and will indicate success as long as the initialization of the update procedure was successful. The network core will still be in a powered on state when this function returns.

Parameters
src_addrStart address of the data which is to be copied into the network core.
lenLength of the data which is to be copied into the network core.
Return values
0on success, an error code on failure.