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.

TPS65981EVM: Set up for USB communication

Part Number: TPS65981EVM
Other Parts Discussed in Thread: TPS65981, , DP-EXPANSION-EVM

We've put the TPS65981 chip on a board design and are having trouble setting up the board for USB communication through the chip. If in the "Application Customization Tool" we select "Re-Flash EVM Firmware (Recovery)" then the chip is able pass USB through succesfully when the USB Type-C cable is connected in one direction. When we flash the chip with our own .bin file, then USB communication fails.

I've reverted back to a setup using an onmodified TPS65981EVM board with the DP-EXPANSION-EVM board and have the same behavior. On the EVM board, the S1 topmost location connected to R13 (BUSPOWERZ) is set to the left for wake on dead battery, the rest of the locations are set to the right per the User's Guide. On J6, pins 2 and 4 are shunted together so that PP_HV is connected to SYS_PWR. On the expansion board we have a simple USB thumb drive and the USB Type-C connector gets connected to a laptop.

I've attempted to use the "Import settings from device" to create an image from the default setup and this fails too. The connection comes up momentarily, but then quickly cuts out.

Project file attached.

17_1006_TPS65981EVM_Download.pjt

  • Hi David,

    Welcome to E2E! I am looking into this issue. I have been unable to replicate this issue with the EVM Recovery FW that you stated you are also using. Is the EVM you are using brand new? There may be a hardware issue on your board that only allows for one cable orientation.

    Thank you,
    Eric
  • Yes, this is a new board. We have 2 sets, one was used for developing our configuration and the other was left as shipped except that the two halves are broken apart and mounted on top of each other. The problem occurs on both. The main problem I see is my ability to build an image off the .PJT file I sent that at least behaves the same way the recovery FW works.

  • Hi David,

    I imported your project file settings into the latest 3.10 template. I noticed you were still using a 2.15 template in your .pjt file. 6036.17_1006_TPS65981EVM_Download.pjt

    I was able to get this working with a few different Type-C laptops and also a Type-C phone that I tested it with.

    Please let me know if this works for you.

    Thank you,

    Eric

  • This did not resolve my issue using a .bin file that I created from 3.10 using your updated .PJT file. Could you please send me your .bin file?

    I see I can't post my .bin file on this forum, hopefully a dropbox link works:

  • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/138/TPS65981EVMFullFlashUSBData.bin

    Hi David,

    Attached is the .bin file I generated from the .pjt file I sent earlier. Please give it a try. 

    What is your Host device that you are connecting your EVM to?

    Thank you,

    Eric

  • Same bad result. tried it on a Dell Precission 7510 laptop; Dell Precission M4800 laptop; and a Dell PC. These were tried with a USB A to USB-C cable. The communication comes up temporarily and then goes away quickly.

    When using the Dell Precission 7510 laptop, I saw this laptop has a USB type-C connector on it. It behaved differently on this port using a USB-C to USB-C cable. The power stayed up, but it had a problem loading the driver. Flipping the connector orientation, it didn't even try to load the driver.

    These issues don't occur when I just use the recovery firmware.

    Was my .bin file working on your setup?
  • Hi David,

    I have only tested it with other Type-C devices and have not seen this issue using a type-c to type-c cable.
    I was unable to open your bin file since I cannot use dropbox here. However, since you are using the same .pjt file I'm sure it would be the same as my .bin file.
    Odd that it still gave you trouble using the .bin file that I had sent you. That one is working well on my setup with either cable orientation and on numerous type-c laptops. Are you using a very long Type-C to Type-C cable by chance?

    Thank you,
    Eric
  • Hi David,

    I was able to reproduce your issue using a Type-C to Type-A adapter. The USB EP was enabled so the TPS65981 would send a billboard message to the PC since no alternate mode could be entered. I removed the USB EP in the configuration settings and was able to enumerate the USB flash drive connected to the TPS65981EVM. Please try the following flash image on your side and let me know your results:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/138/TPS65981EVMFullFlashUSBData1.bin

    Thank you,
    Eric

  • Works on my EVM, doesn't work on my own hardware. I'll continue debugging. Thanks. Can you send the .PJT you used?
  • Hi David,

    Here is the .PJT file:

    5444.17_1006_TPS65981EVM_Download.pjt

    Thank you,

    Eric