2025-01-08 01:22 AM - edited 2025-01-08 02:57 AM
Hello Community,
I am facing problem while interfacing 4 and 8 GB pendrive with STM32H747 microcontroller.
After debugging i have observed that interrupt is not getting triggered i.e when i inserted breakpoint in function (OTG_FS_IRQHandler) with controller never reached that breakpoint instead hhcd->hc[chnum].urb_state continue to stay URB_NOTREADY with 8 GB pendrive. while i interface the 64 GB pendrive interrupts are getting triggered &
hhcd->hc[chnum].urb_state did change to URB_DONE state.
Thanking in advance.
Regards
2025-01-08 01:29 AM
You need to give more details:
How to write your question to maximize your chances to find a solution
2025-01-08 01:41 AM
No useful information presented.
Instrument the USB interaction at first connection.
Show file system interaction at a block level.
Make sure it can read the MBR and BPB from the media and review what's happening differently between working and non-working cases.
Instrument error and status messages.
2025-01-09 03:17 AM - last edited on 2025-01-09 03:28 AM by Andrew Neil
Duplicate - merged
Dear Community,
I am currently working on interfacing of USB (pen-drive) in FS mode with STM32H747BIT6.
I have observed that during the enumeration process of pen-drive it is failing to proceed at the function
USBH_HandleControl --> case CTRL_SETUP_WAIT: --> USBH_LL_GetURBState -->HAL_HCD_HC_GetURBState -->
hhcd->hc[chnum].urb_state is not changing to URB_DONE and continues to show URB_NOTREADY.
As the interrupt is not getting triggered for FS.
Is there any i can find if the problem subsides in Hardware or USB driver side.
Attaching schematic part for the reference.
Thanking in advance.