This section contains APIs used for upgrading the firmware on Quessence boards.

rsi_fwup_start

Prototype int32_t  rsi_fwup_start(uint8_t *rps_header);
Input Arguments uint8_t *rps_header: pointer to the rps header content
Return Value
  • On Success :  0
  • On Failure   : <0
  • if return value is less than 0

-2 : Invalid parameters

-4 : Buffer not available to serve the command

Description This API is used to send the RPS header content of firmware file .
Example Usage rsi_fwup_start(recv_buffer);

rsi_fwup_load

Prototype int32_t  rsi_fwup_load(uint8_t *content,uint16_t length);
Input Arguments uint8_t  *content : Pointer to the firmware file content

uint16_t length : Length of the content

Return Value
  • On Success :  0
  • On Firmware upgradation completed successfully :  3
  • On Failure   : <0
  • if return value is less than 0

-2 : Invalid parameters

-4 : Buffer not available to serve the command

 

Description This API is used to send the firmware file content.
Example Usage rsi_fwup_load(recv_buffer,fwup_chunk_length);