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.

TM4C129XNCZAD: "Invalid PID Sequence" using TivaWare USBlib

Part Number: TM4C129XNCZAD


Invalid PID Sequence.rar


Attached is a log from a Beagle USB 480 protocol analyser.
Our set-up is a hub with our HID device on port 1 and an off-the-shelf USB camera on port 2.

I can't determine what's causing the "Invalid PID Sequence" error on port 1.
After four errors the host system gives-up then moves on to enumerates the Camera just fine.

Google isn't providing much help with this error. Any clues how I could look into this?

Regards.
T.

  • Hi Tony,
    I will forward your question to our expert. In the meantime can you provide more information whether it works or not when the HID device is directly connected to the host without the hub. I assume the MCU is running the HID class as a device, correct? Have you tried to run the TivaWare usb_dev_keyboard example which is using the HID class. Does it work?
  • Hi Charles,

    Tomorrow I'll ask the hardware guys to patch the board to bypass the HUB and give the Keyboard HID demo a go.

    Regards,
    Tony.
  • HI Charles.

    As requested, I bypassed the hub and built the usbdhidkeyb.c example from the usblib library. The Beagle protocol trace is attached below.

    NoHubTrace.rar

    The call to USBDHIDKeyboardInit() to created and attached the keyboard to the bus seems to pass and returns a pointer to a sensible looking psHIDKbDevice structure.

    The bus analyser still shows multiple "Invalid PID sequence" messages though.

    Regards,

    Tony.

  • Hi Tony,
    I have forwarded your question to our expert.
  • Hello Tony,

    Sorry for the delay to get back to you. The example we are referring to is from the TivaWare example folders. For example, presuming you are using the DK board or the MCU from it (per your post title), [Install Path]\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c129x\usb_dev_keyboard

    This example includes all required calls to properly set the TM4C into a USB device mode for HID keyboard. If this example works, then we know the issue is a software configuration issue and can then compare the differences between the device setup you have put together. It could be something as simple as the descriptor.