2020-09-15 12:57 PM
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.
2020-09-15 03:00 PM
Have you read the whole thread?
JW
2020-09-15 03:25 PM
I have... I was just hoping that there are some news around this as he was using an older version. I guess not :(