Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Infuse DFU helper APIs

Functions

int infuse_dfu_image_erase (const struct flash_area *fa, size_t image_len, bool mcuboot_trailer)
 Erase a flash area to be ready for a new image.
 
int infuse_dfu_nrf91_modem_delta_prepare (void)
 Prepare the nRF91 modem for a delta image upgrade.
 
int infuse_dfu_nrf91_modem_delta_finish (void)
 Finalise a nRF91 modem delta image upgrade.
 

Detailed Description

Function Documentation

◆ infuse_dfu_image_erase()

int infuse_dfu_image_erase ( const struct flash_area * fa,
size_t image_len,
bool mcuboot_trailer )

#include <infuse/dfu/helpers.h>

Erase a flash area to be ready for a new image.

Parameters
faFlash area to erase (must be already opened)
image_lenLength of image
mcuboot_trailerErase space for MCUBoot trailer
Return values
0On success
-errnoError code from flash_area_erase on failure

◆ infuse_dfu_nrf91_modem_delta_finish()

int infuse_dfu_nrf91_modem_delta_finish ( void )

#include <infuse/dfu/helpers.h>

Finalise a nRF91 modem delta image upgrade.

Return values
0On success
-errnoError code from nrf_modem_delta_dfu_write_done or nrf_modem_delta_dfu_update

◆ infuse_dfu_nrf91_modem_delta_prepare()

int infuse_dfu_nrf91_modem_delta_prepare ( void )

#include <infuse/dfu/helpers.h>

Prepare the nRF91 modem for a delta image upgrade.

Return values
0On success
-errnoError code from nrf_modem_delta_dfu_offset, nrf_modem_delta_dfu_erase or nrf_modem_delta_dfu_write_init