SLVAFL1 October   2024 TPS25751 , TPS26750

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2EEPROM Boot Flow
    1. 2.1 Boot Process
    2. 2.2 Updating the EEPROM Image
    3. 2.3 Commands
    4. 2.4 EEPROM Update Example
  6. 3Source Code Example
    1. 3.1 UpdateRegionOfEeprom()
    2. 3.2 UpdateRegionOfEeprom_Step1
    3. 3.3 UpdateRegionOfEeprom_Step2()
    4. 3.4 UpdatingRegionOfEeprom_Step3()
    5. 3.5 UpdatingRegionOfEeprom_Step4()
    6. 3.6 WriteRegionPointer()
  7. 4Recovering From EEPROM Failure
  8. 5Summary
  9. 6References

Commands

The EEPROM-update process uses the 4CC ASCII commands listed in Table 2-1.

Table 2-1 4CC ASCII Commands
Name of 4CC Command ASCII Input DataX Length
(In Bytes)
Output DataX Length
(In Bytes)
Description
Flash Memory Read FLrd 4 16 The FLrd Command reads the flash at the specified address
Flash Memory Write Start Address FLad 4 1 The FLad Command sets start address in preparation the flash write
Flash Memory Write FLwd 64 1 The FLwd Command writes data beginning at the flash start address defined by the FLad Command. The address is auto-incremented

Flash Memory Verify

FLvy 4 1 The FLvy Command verifies if the patch or configuration is valid
Cold reset request GAID 0 0 The GAID Command causes a cold restart of the PD Controller processor. The GAID command is used at the end of the FW update procedure to re-boot the TPS25751/TPS26750 and reload the new FW version from non-volatile Flash memory

To execute a 4CC command, the host application shall follow the below sequence:

  1. If the 4CC command requires an input, the application shall first write the input data into the Data1 (0x09) register.
  2. The application shall then write the 4CC command characters into the corresponding Cmd1 (0x08) register.
  3. The application shall wait until the four byte content of Cmd1 register reads the following – Applications can either poll, or set and use the Cmd1Complete event:
    • 0x00 indicating that the command is successfully executed.
    • or, CMD indicating that the command's execution has failed.

If the command is successfully executed, the application shall proceed to read the n byte content of the Data1 register which will contain the output. Refer the device's Host Interface TRM for more details on the 4CC commands TPS25751 Technical Reference Manual.