2024-07-07 04:52 AM - edited 2024-07-07 04:59 AM
Hello forum,
I'm trying to setup my B-U585I-IOT02A as a USB host.
Ive turned on the following:
to initiate I've used these in my main:
MX_USB_OTG_FS_HCD_Init();
ux_host_stack_hcd_register(_ux_system_host_hcd_stm32_name,_ux_hcd_stm32_initialize, (ULONG)USB_OTG_FS,(ULONG)&hhcd_USB_OTG_FS);
It seems I don't get the any power out to my USB flash drive, and the USB event callback doesn't work.
am I doing something wrong? am I missing something? thanks in advace
2024-07-08 12:29 AM
Hello @ElectroManiac
Could you share to us a trace .cpd file please ? Using the tracer tool here.
To check if the attach state is reached. Because in Type C, before turning on VBUS, the CC lines must be checked.
In the trace, check if there are notifications sent by the USBPD stack to the USB part.
The mechanism is described here.
Regards,
Nicolas
2024-07-08 01:52 AM
2024-07-09 12:09 AM
Hello @Nicolas P.
the CubeMonitor UCPD doesn't recognize the USB-C of the board,
What should I do?
2024-07-09 12:15 AM
Hi @ElectroManiac.
You need to add the embedded trace tool. See this wiki.
Have you tried looking for the COM port directly (clicking on the blue top right panel) ?
Nicolas
2024-07-09 02:04 AM
@Nicolas P.
the PC doesn't recognize the COM for the USBC, (it does show the STLink Com tho)
2024-07-09 02:14 AM - edited 2024-07-09 02:14 AM
It's because you need to add a part in the firmware.
Have you followed the above link I shared ?
You need to configure a LPUART and an utility : Tracer_emb as on below picture.
2024-07-09 02:24 AM
@Nicolas P. I'm following the manual as I write to you and will update in a new comment once I'm done with It,
But before that, I must say that the USBPD_SNK_UX_Device_HID_CDC_ACM example doesn't include TCPP support.
Will it even work without it?
2024-07-09 03:01 AM
@Nicolas P.
I get these errors after generating the code
2024-07-11 07:38 AM
Hello @ElectroManiac
The example USBPD_SNK_UX_Device_HID_CDC_ACM uses the TCPP.
Can you share your .ioc please ?
You made another post here. Is it the same project / issue ?