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.

SK-AM62A-LP: Assistance with Configuring to Act as USB HID Mouse

Part Number: SK-AM62A-LP

Tool/software:

Dear E2E community,

I'm working on a project with the SK-AM62A-LP, and my goal is to configure the board so that any computer recognizes it as a USB HID mouse. I've enabled the DWC3 module and attempted to activate gadget mode. I followed the guidance in the AM62x DWC3 USB documentation, which suggests using make menuconfig to enable the required configurations.

However, I currently don't have access to a Linux PC to recompile the kernel, and I’m not certain that recompiling the kernel is necessary for this setup. I’ve also tried using device tree modifications, but I haven’t had success so far.

Here are the steps I’ve taken:

  1. Enabled the DWC3 module.
  2. Attempted to load the g_hid module but encountered errors indicating it wasn't found.
  3. Tried using scripts to configure USB HID, but the device isn't recognized as a mouse by my computer.

I would appreciate guidance on the best way to proceed. Specifically:

  • Do I need to recompile the Linux kernel, or is there an alternative method to enable the necessary configurations?
  • Are there any precompiled modules or configurations available for this board that I could use?
  • Any tips on correctly modifying the device tree or other configurations to achieve the HID mouse functionality?

Thank you for your support!

Best regards,
Lía

  • Hi Lia,

    First of all, the DWC3 USB documentation you referred explains the details about kernel DWC3 drivers, it is useful when you want to customize the kernel. But the kernel config options explained in the documentation are already enabled in the Processor SDK prebuilt Linux.

    However, the USB HID gadget is not enabled in the SDK prebuilt Linux, so you would have to enable it in kernel config and rebuild the kernel.

    USB HID gadget is not specific to any TI processor, supporting it is beyond the scope of this E2E forums, but please refer to kernel Documentation/usb/gadget_hid.rst for details in using the HID gadget.

  • Thank you!