2024-07-15 01:25 AM
USB_FlushTxFifoc & USB_FlushRxFifo API flag USB_OTG_GRSTCTL_TXFFLSH & USB_OTG_GRSTCTL_RXFFLSH can not clear when set.
2024-07-15 02:05 AM
Hi @jimmy_cheng
Typically, you have an issue to initialize your USB PHY consequently core init. Check you clock configuration, your sequence to configure the PHY.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-15 09:14 AM - edited 2024-07-15 09:30 AM
Hi, @FBL
I use the USB3340-EZK and checked the clock configuration is correct,and the USB_CoreInit API can return HAL_OK.
It's run OK last week, but get the HAL_TIMEOUT in "Flush TX /RX Fifo " this week. I have no change.
The local variables below when break stop on 469 line.
2024-07-16 01:47 AM
Hi @jimmy_cheng
I have seen a similar issue on F4, could you confirm inserting __DSB(); resolves the issue to ensure transaction is complete.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-16 03:26 AM
2024-08-14 09:57 AM
Hi @jimmy_cheng
Did you update the latest version of CubeH7?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.