This component interfaces with the Gecko bootloader to perform OTA updates.
More...
This component interfaces with the Gecko bootloader to perform OTA updates.
◆ uic_gbl_interface_transfer_progress_t
typedef void(* uic_gbl_interface_transfer_progress_t) (int offset, int size) |
Callback function used to monitor the transfer progress of the file.
- Parameters
-
offset | Offset of last transferred block |
size | Total file size. |
◆ uic_gbl_interface_detect_bootloader()
sl_status_t uic_gbl_interface_detect_bootloader |
( |
int |
serial_fd | ) |
|
Probe for Gecko Bootloader.
Detect if there is a gecko bootloader in the other end of the file descriptor
- Parameters
-
- Returns
- sl_status_t SL_STATUS_OK on success
◆ uic_gbl_interface_transfer_image()
Perfrom at DFU firmware update using the gecko bootloader.
This function transfers an image to a device using the gecko bootloader. It is assumed that the chip is already in DFU mode when this function is invoked.
- Parameters
-
gbl_filename | GBL file to transfer |
serial_fd | File descripter to the serial interafce of the bootloader. Data will be read and written to this file descriptor. |
progress_callback | Callback function which indicates how may bytes has been transferred. |
- Returns
- sl_status_t SL_STATUS_OK on success.