This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS65987D: Source code for flash and boot up

Part Number: TPS65987D

Team,

My customer is using this USB-C PD controller to sink power from a DC power supply (battery pack).

1) Is there any source code, examples or guides around interfacing with the TPS65987D? More specifically, they are looking for information on how to flash the PD controller with the application bundle, handle boot up sequences, request different voltages, etc.  I checked the SPI flash firmware update over I2C app note (attached) but didn’t really find any source code for what they are looking.

 

2) They currently have I2C and SPI connected between the TPS65987D and MCU. They also have an external flash that is connected via SPI with the MCU. Can they use this setup to flash the application bundle on TPS65987D? Is it necessary for the TPS65987D to have its own dedicated flash via SPI?

 

Regards,

Dmitry

  • Hi Dmitry,

    Yes, you can reference the SPI Less Host Programming Over I2C Application Note. It goes over the process of uploading patch and configurations over I2C using the host. There is also example code in section 3.1.3. You can also reference them to the "Technical Documentation" tab on the TPS65987D product page which contains additional application notes as well as the datasheet and the Host Interface Technical Reference Manual for the device. As for the setup, that should be fine, and no they don't necessarily need a dedicated Flash for their PD controller as it can be programmed using the Host via I2C.

    Thank you,

    Hari

  • Hi Hari,

    Yep, I already sent those tech notes to them and pointed them to the links in the technical docs section - was just curious if there's anything else they can do.

    Thanks you for the additional information. I'll let you know if that clarifies the questions they had.

    Regards,

    Dmitry