i evaluate for a new project the RA[4/6]E1 Controllers.
I have some problems to find a working USB sample. Currently i have a fpb_ra6e1 board here.
In the board examples folder https://github.com/renesas/ra-fsp-examples/tree/master/example_projects/fpb_ra6e1 is no USB sample.
I modified the sample:
to work with the R7FA6E10F2CFP Controller. But nothing (USB) is working.
I have Connected USB-DP, USB-DM and USB_VBUS to P407. Adjusted the USB Clock to 48 MHz.
Is a demo HID, CDC, WINUSB is available to evaluate the USB functions?
Unfortunately there are no USB examples for exactly this board as it doesn't have the device USB port like EK-type boards.
The only thing I can suggest is to check this board https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/tw001-vuia6e1pocz-ra6e1-voice-user-reference-kit#document which has the same MCU. In the Schematics diagram of this board (https://www.renesas.com/us/en/document/sch/voice-ra6e1-schematics?language=en&r=1615001) you can find the correct connection of the USB to the MCU. Please compare it with your connection, maybe you will find some issue there.
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Thank you. The the USB demo is now working.
With freertos is a composite device demo included (usb_composite_ek_ra6m1_ep) - this is working. With threadx (usbx) no sample or a demo with a compsite device is avalilable.
Is it possible to use the USBX stack with a composite device (hid+cdc)?
Exist a manual how to implement a own interface (Custom usb device interface) with usbX?
You can read more about the USBX in the official Microsoft page https://learn.microsoft.com/en-us/azure/rtos/usbx/usbx-device-stack-5. In this page it's written now to create the descriptor of the composite device
In this page https://learn.microsoft.com/en-us/azure/rtos/usbx/overview-usbx it is mentioned that the custom classes are also available and the examples are provided in the USBX distribution.
I'm having similar issues trying to get USB HID to work on an FPB-RA4E1 board. I soldered a USB cable directly to USB_DM and USB_DP and used P407 for USB_VBUS though some resistors and added and configured a 24 MHz crystal. I tried both the usb_phid_ek_ra4m2_ep and USBX_phid_ek_ra4m2_ep demo applications. Both applications run just fine, but when I connect the USB cable to my computer, the device manager reports "Unknown USB Device (Device Descriptor Request Failed".
Have you configured the PLL2 to create the 48Mhz USB Clock in FSP?
Enable the USB_FS Module @ Pins and enable the P407 routing.
Nevermind, the D+ and D- were swapped...
I have the same issue.
I'm using a "FPB-RA6E1", I changed the "usb_phid_ek_ra6m1" example and when I start the debug it seems that everything is working fine, but then the PC ( with windows 11) doesn't find the HID.
I have just connected usb_dm, usb_dp and ground, do I need other connections?
Can you tell me how did you do it?
Now it's working.
I haven't setting the P407 as "USB_VBUS". The only needed connections are usb_dm and usb_dp.
Vcc and GND are not needed.