Firmware Update from Host#
This section provides a reference to the APIs used to perform firmware updates from the host.
Functions#
Send the RPS header content of firmware file.This is a blocking API.
Send the firmware file content.This is a blocking API.
This API is used to abort the firmware update process on the SiWx91x device.
Flashes firmware to Wi-Fi module via bootloader.
Set fast firmware upgrade.
Function Documentation#
sl_si91x_fwup_start#
sl_status_t sl_si91x_fwup_start (uint8_t * rps_header)
Send the RPS header content of firmware file.This is a blocking API.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [in] | rps_header |
|
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
sl_si91x_fwup_load#
sl_status_t sl_si91x_fwup_load (uint8_t * content, uint16_t length)
Send the firmware file content.This is a blocking API.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [in] | content |
|
uint16_t | [in] | length |
|
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
sl_si91x_fwup_abort#
sl_status_t sl_si91x_fwup_abort ()
This API is used to abort the firmware update process on the SiWx91x device.
This is a blocking API.
Pre-conditions:
sl_si91x_fwup_load should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
Note
Only after successful completion of firmware download using sl_si91x_fwup_load API, the user can call the sl_si91x_fwup_abort API.
Ensure to call this abort API before performing a Soft / Hard reset of the SiWx91x device. if not called before soft/hard reset firmware update process won't be aborted.
sl_si91x_bl_upgrade_firmware#
sl_status_t sl_si91x_bl_upgrade_firmware (uint8_t * firmware_image, uint32_t fw_image_size, uint8_t flags)
Flashes firmware to Wi-Fi module via bootloader.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [in] | firmware_image | Pointer to firmware. |
uint32_t | [in] | fw_image_size | Size of firmware image.. |
uint8_t | [in] | flags | Flags indicating chuck position in file 0 = Middle of file 1 = Start of file 2 = End of file |
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
sl_si91x_set_fast_fw_up#
sl_status_t sl_si91x_set_fast_fw_up (void )
Set fast firmware upgrade.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | [in] |
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.