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.

TPS65982-EVM: My UFP replies NAKs to Enter Mode requests

Part Number: TPS65982-EVM
Other Parts Discussed in Thread: TPS65982, TPS65981, HD3SS460

Hi everyone,

I connect TPS65982EVM to a device provided by a manufacturer, trying to make TPS65982EVM accept Enter Mode requests from the device, but it fails.

In this case, TPS65982EVM acts as UFP.

I checked the power delivery (PD) packet log and I found that that TPS65982EVM returns a Negative Acknowledge Response (NAK) to the Enter Mode request packet.

Strangely, when the device sends a Discover Modes request packet, TPS65982EVM returns the same mode value as the unsuccessful Enter Mode request packet contains.

Does anyone give me any suggestion?
Is it possible that TPS65982 doesn't accept Enter Mode requests?

The procedures I took are as follows:
1. Download the TPS65981_2_6_7_8 Application Customization 5.1 (which is the latest as of today)
2. Launch the customization tool.
3. Select "Project" and then click "New Project".
4. In the new window, select "TPS65982", "Advanced", "None" and "Upstream Facing Port (UFP) Only".
5. Select "TPS65982_HD3SS460_UFP_Advanced_v5_01.tpl" and click "OK".
6. Click "Common Settings" tab and display "User Alternate Mode Config".
7. Configure User Alternate Mode Config: check "User VID Enabled", input "Vendor ID", check "User VID Mode 1 Enabled" and input "Mode Value" in the User Alternate Mode #1 Settings.
8. Back to the general setting tab, make sure that you are using "TPS65981_2_6_v0001_12_09.bin" as a Firmware Base image.
9. Select "Binary" and then "Save Binary".
10. Save as a full flash image file.
11. Write the image file with Aarvark I2C/SPI.
12. Reset the TPS65982EVM and connect it to the device provided by a manufacturer.

Thanks,

Norihide

  • Hello Norihide,

    Thanks for the clear explanation. I have a few questions to try and help you solve this issue.
    1. What is the device you are using in this setup acting as the DFP? You saw it was shared with you by the manufacturer, but could you elaborate as to what the product is?
    2. What is the vendor ID that you are entering into the "User Alternate Mode Config"

    Can you try enabling "User VID Mode Autoentry" for the specific alternate mode you are trying to enter
  • Also, here is an App note that may help you enabling the alternate mode

    www.ti.com/.../slva841.pdf
  • Hi Adam,

    Thank you for your replies.

    What I want to do is to wake the device up by my docker system.
    I think I am able to do this by analyzing a Fujitsu's docker system and make my device act as a Fujitsu docker.
    I have a Fujitsu's docker system which can wake the device up.

    Here is the answer for your questions:

    >> 1. What is the device you are using in this setup acting as the DFP? You saw it was shared with you by the manufacturer, but could you elaborate as to what the product is?

    The device acting as the DFP is a Fujitsu laptop, LIFEBOOK P728/S.
    You may find it difficult to get the information because this is a Japanese product.

    >> 2. What is the vendor ID that you are entering into the "User Alternate Mode Config"

    The vender ID is 04C5h.

    >> Can you try enabling "User VID Mode Autoentry" for the specific alternate mode you are trying to enter

    I did it, but nothing has changed.

    I've already read through the TPS6598x User Alternate Modes. www.ti.com/.../slva841.pdf

    Actually, I noticed before that there is no such template as TPS65982_appConfigUserAM_2_9.tpl in the latest application customization tool.

    How can I get this template today?

    And I have other two problems which may relate to the main problem.

    1. My TPS65982 only recognize one side and cannot recognize it if it is reversed .
    It seems my TPS65982 only accept CC1 wire because only CC1 LED can be on.
    I think the same thing is happening as this question: e2e.ti.com/.../2177722

    2. My TPS65982 doesn't accept AMIntrusiveMode.
    Even if AMIntrusiveMode is set to 0b1 in 0x29 Control Configuration, my TPS65982 (UFP) automatically responses to VDM Commands.
    I want to adapt my TPS65982 to various devices, so I want an external controller to control response packets.

    Regards,
    Norihide
  • >> 1. My TPS65982 only recognize one side and cannot recognize it if it is reversed .
    It seems my TPS65982 only accept CC1 wire because only CC1 LED can be on.
    I think the same thing is happening as this question: e2e.ti.com/.../2177722

    I got another TPS6592EVM which can accept both sides, but it also replies a NAK to an Enter Mode Request.
  • I got a TPS65987EVM and tried to make it accept Enter Mode Requests, but it also replies NAKs.
  • I found why TPS65982 replies NAK.
    It is because the value in the Object Position field in the VDM Header is 0.

    This value Shall (meaning mandatory) indicate to which Mode in the Discover Modes Command the VDO refers. (6.4.4.3.4 Enter Mode Command, USB_PD_R3_0 V1.2 20180621 - with ECRs 2018-09-24)

    So, here is another question:
    Is there a way to disable automatic response to Enter Mode?

    Thank you.
  • Hello Norihide,

    I apologize for the late reply, I have been out traveling for work.

    I'm glad you were able to figure out one of your issues. As far as disabling an automatic response to Enter Mode, you will need to change the configuration you are flashing to the EVM. Change bit 25 of register 0x29 from low to high. This will allow you to issue manual commands as opposed to automatic ones.

    I hope this helps answer your question. If so, please click THIS RESOLVED MY ISSUE