[EK-RA8M1]-[USBX_HHID] - CAN NOT RUN EXAMPLE "USBX_hhid_ek_ra8m1_ep" OF EXAMPLE PROJECT

Hi all,

I'm a newbie, I try to run example project "USBX_hhid_ek_ra8m1_ep" with FSP version 5.4.0

But it doesn't work. It is connected with keyboard, but when keyboard pressed it doesn't show in RTTviewer.

I try to debug and an error occur 

Can someone please help me?

Thank you so much.

  • Hello,

    Thanks for reaching out Renesas Engineering Community.

    The specific example you are referring to, use the USBX stack and configures RA8M1 board to work as a host device at which you can connect HID devices like a keyboard or a mouse.

    For this example you need 1 USB cable, 1 OTG usb cable and 1xmouse or 1xkeyboard.

    To configure the EK-RA8M1 to work as a USB host device from USB full speed port please make sure that you have also configured the jumpers correctly.

    Specifically for USB-FS port to operate as host:

    J15: jumper should be open.

    J12: jumper should be placed to pins 1 or 2.

    Connect the OTCG cable to USBFS port and then on the cable connect the HID device you want to use.

    I tested the specific example with a mouse and seems that it is working with no issues.

    I can get on RTT viewer the necessary logs for the mouse.

    In your case when you are connecting the keyboard you should connect the keyboard device on the OTG cable and than when pressing a character you should see this character being printed on RTT viewer terminal.

    What are the messages you get on RTT when using the keyboard and pressing a button on it?

    Thank you.

    Best Regards,

    IK

  • Hi IK,

    I also had the same problem and after I debugged on hhid_thread_entry.c at line 140, the hid client name got some strange characters instead of "ux_host_class_hid_client_keyboard" 

    (I'm using the Robot RK10 keyboard : www.tokopedia.com/.../robot-rk10-mini-usb-wired-keyboard-ultra-thin-silent-button-anti-slip-robot-rk10 )


    Can you tell me the source code you are using?
    Here is the source code I am running:

     

    Thank you.

    Best Regards,

    Tuan Kiet