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.

how to enable USB EP in Application Customization tool

Other Parts Discussed in Thread: TPS65986EVM, TPS65982, TPS65982-EVM

Hey Team,

I have a TPS65986EVM and I have loaded a custom configuration to it, in the application customization tool I select the checkbox to enable USB EP Enable (see below), but I get an error when I try to connect using USB EP.

Using an Aardvark I put the default EVM config back on it, and it works, no error, but not on my custom config.- what else am I missing that needs to be enabled to enable USB EP functionality?

System config tab:

error:

your feedback and input is appreciated!

thanks,

Saqib Mohammad

  • Saqib,

    The USB EP feature needed added protection for it to be capable of being implemented in a real system:

    The system needs to indicate that it is now in a "debug" mode by indicating this to the TPS65982 (GPIO Out on embedded controller - GPIO In on TPS65982).

    Try again after mapping the "USB EP Enabled" event to GPIO1 or one of the other switch-controlled GPIOs (DEBUG3 or DEBUG4) and setting that GPIO High.

  • Hey Brian,

    Thanks for the input. I attempted to set GPIO #1 as you described ( I tested with and without Internal Pull Up Enable checked) and I am still getting the same error.

    Is another step required to "set GPIO high"? When you saw it is switch controlled - how can I control that GPIO?

    Thanks,

    Saqib

  • Saqib,

    There is a physical switch on the board. You have to physically move the switch from the Left (Off-Low) position to the Right (On-High) position or you are not going to generate a '1' for this input. Neither the internal pull-up (100k/100k divider = 1.66V) or pull-down (100k//100k pull-down = 0V) will do anything.

    On the TPS65982-EVM, it is connected to the S1 Switch Bank, pins 1-to-8. The wiring on the TPS65986EVM is the same, except it is annotated as Switch S2.
  • Hey Brian,

    I didn't realize they played a role when running custom configuration. I just did the test again and I encountered a strange phenomenon.

    I was able to get the USB EP test in the utilities Gui to return the result of "APP" meaning that it works. but ONLY if I first move the dip switches to the left, let it throw an error, then move them all to the right, test again, it then works - but only until I restart the device. once I restart the device it continues to error until I flip the dip switches all left and right again and testing again.


    I still think I must have something set up incorrectly. my EVM also has the labels backwards. the reset button is labeled S2 and the 8 pin dip switches is labeled S1 (TPS65986EVM). I checked the datasheet and it is labeled the way you described.

    I tested this phenomenon on two separate EVMs, same exact result.
  • Saqib,

    This is not a strange phenomenon. Actually, I expect it and was thinking about warning you about it (I guess I should have).

    Unlike the GPIO Config Inputs (which are special for configuring the EVM at Boot), the normal Input Events are all edge triggered and cannot be active (in this case 'High = 1') when the EVM is powered-on.

    If this occurs, you will need to toggle the input high-to-low-to-high to trigger the event again.

    In a real system, the processor that enables the "EP debug mode" or "FW update over EP mode" will need to have a POR value of '0'
  • Hey Brian,

    Ah, that makes sense. :) Thanks!

    best,
    Saqib