Skip to main content
Visitor II
September 15, 2020
Question

STM32F7 / STM32Cube_FW_F7_V1.16.0 USB Host issue

  • September 15, 2020
  • 1 reply
  • 730 views

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.

    This topic has been closed for replies.

    1 reply

    Super User
    September 15, 2020

    Have you read the whole thread?

    JW

    ERund.1Author
    Visitor II
    September 15, 2020

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