SLVAFF7B December 2022 – November 2024 TPS25762-Q1 , TPS25772-Q1
The 4CC ASCII commands listed in Table 4-2 need to be used when writing the patch bundle to the EEPROM from a host.
Name of 4CC Command | ASCII | Input DataX Length (In Bytes) | Output DataX Length (In Bytes) | Description |
---|---|---|---|---|
Secure flash update initiate command | SFWi | None | 3 | SFWi prepares the device to receive upcoming data packets. PD controller shall be in FWUP mode when this task is invoked. PD controller shall NOT perform any PD operations while in FWUP mode. |
Secure flash update data command | SFWd | 64 | 3 | SFWd Task is the primary step in the Firmware Update flow. SFWd provides PD controller with the next 64- bytes to be flashed into the I2C EEPROM. |
Secure Firmware Update Complete | SFWs | 64 | 3 | The SFWs Task is the final step in the Firmware Update flow provided the PD controller has been provisioned for Secure Flashing using the previous SFWx commands. SFWs passes the image signature information to the PD controller for verification of the data previously received through the SFWd Task. |
Unsigned Firmware Update Complete | SFWu | None | 3 | The SFWu Task is the final step in the Firmware Update flow provided the PD controller has not been provisioned for Secure Flashing. SFWu informs the PD controller that the Firmware Update process is complete, and causes PD controller to do the verification of the image and changing of the Active Region assuming all checks pass. |
To execute a 4CC Task, the host application shall follow the sequence below:
Applications can either poll or set and use the CMDxComplete I2C event (for this application note, since the patch bundle has not been downloaded, the host can poll the state of the CMDx register).
If the task is successfully executed, the host can proceed to read the 3 bytes content of the DATAx register that contains the output data if the related task has output values.