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.

TUSB1146EVM: Accessing TPS65987D

Part Number: TUSB1146EVM
Other Parts Discussed in Thread: TPS65987D, TUSB1146,

Hello,

My goal is to load the TPS65987D configuration from the EVM into the TPS65987x Application Customization tool (v6.1.1).  The intend is to explore current settings, modify a few and try them out.

Using the above mentioned tool and an Aardvark adapter, an I2C address sweep finds a device at 0x44.  Test read on "mode" register returns 1146.  As a matter of fact, 0x44 is TUSB1146 I2C address. Wrong customer; I want to reach the TPS65987D. 

I understand from the schematics that TPS65987D controls TUSB1146 through its I2C port 1 (I2C1).  Datasheet 8.3.12 states port 1 defaults to slave.  Then, I assume that the flash configuration file configures that I2C port in master mode, which would explain why it does not answer to the address sweep.

However, flash read gives me 1024KB of 0xFF, except for the first 4 bytes that match the "Test SPI Flash Read" (0 0x20 0 0).  Looks like a blank flash.  Suspicious...

So, 3 questions:

1- How can I read TPS65987D registers through I2C adapter on the EVM?

2- Why am I reading a blank flash? 

3- Is there a way to load a flash binary file in a tool to see the settings?

Complementary information:

See image below

JMP24=I2C interface

JMP22=Aardvark adapter

JMP23 open

DP + USB port to USB-C link works with these settings. 

Thanks you very much for your assistance.

  • Hi Fred,

    The TUSB1146EVM should come with a pre-programmed flash. Was the EVM working appropriately before trying to can the TPS64987D configuration? When programming the SPI flash are you selecting “SPI Flash”=> Windbond/NexFlash => W25Q80 in the Total Phase Flash center (Aardvark Tool)? I can share the original bin file to restore the default configuration if necessary. 

    PD controller configuration should be modified through the flash since the I2C port is need to control TUSB1146.

  • Hi Malik,

    As stated at the end of my post: "DP + USB port to USB-C link works with these settings. "

    I had 3 clear questions each with a number.

    #2 is solved:  After verification, the flash is not blank.  There is data in the middle I had missed. My error.

    Can you answer the other 2 questions please?

    Thanks

  • Hi Fred,

    1. No this is not possible. PD controller configuration should be modified through the flash since the I2C peripheral port is needed to control TUSB1146.

    3. No, not to my knowledge but I can share project file for the configuration. Please accept my friend request so that I can send you the software through E2E DM. Please post on your original thread once you have done so.

  • Project file sent over E2E DM. 

  • 1.  Ok. I understand I2C1 port is set to master mode by the flash image the EVM ships with.  Then, could I tap onto I2C2 port?  This one is slave only.  It should give me access to the registers right?

    3. Thank you for the project file, it will be much useful!  If I want to generate a proprer flash image from it (the same as shipped with the board), do I need to append a FW base image?  If so, which one?

  • 3.  Using the FW base image provided with the tool, I have been able to generate a binary that matches the one shipped with the EVM.

  • 1. Using I2C2 you maybe able to access the I2C registers based on the bin file, not sure if this has been tested. Main focus of this EVM is TUSB1146. It is intended to do any configuration update through the SPI flash but Imagine you are looking for some status registers of the PD controller. 

  • We'll be using both TPSD65987D and TUSB1146 together so this EVM is a do-it-all EVM for us.

    I'll give a shot at I2C2 and see...