cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 / STM32Cube_FW_F7_V1.16.0 USB Host issue

ERund.1
Associate II

Hello!

When trying to implement USB OTG HS Host, I am running into an issue. In file "stm32f4xx_ll_usb.c", function "USB_HC_StartXfer" there is a piece of code that enables the USB_OTG_GINTMSK_PTXFEM interrupt. However, it then proceeds to write the entire data to the FIFO without checking how much space is available. Additionally, the interrupt handler "HAL_HCD_IRQHandler" doesn't give a care about those interrupts, NPTXE isn't even cleared.

Everything works fine for transfers that are smaller than the FIFO size and can fit in a single packet, but the second I am exceeding that I am running into the issue with this code.

What am I missing here?

This person https://community.st.com/s/question/0D53W00000CfE0ASAV/stm32f407-usb-related-questions also ran into this on STM32F4.

2 REPLIES 2

Have you read the whole thread?

JW

I have... I was just hoping that there are some news around this as he was using an older version. I guess not :(