cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to inerface (4 and 8 GB) pendrive to STM32H747

Rushali
Associate III

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

3 REPLIES 3

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Rushali
Associate III

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.