2024-09-02 11:49 PM
Hello my friends.
I am working with stm32f7 microcontroller.
I have an issue while using USB pendrives bigger than 16gb. When I try to write into one of them code seems to be stuck on this while loop.
and those statuses seems permanent: hbot.state = BOT_DATA_OUT_WAIT and URB_Status = USBH_URB_IDLE. Any idea how to fix this problem?
2024-09-04 02:40 AM
Hello @DaSow
When you're working with USB mass storage devices on STM32 microcontrollers, especially those with larger capacities like 16GB or more, there are a few things that could cause the code to get stuck in a loop:
USBH_MSC_RdWrProcess
is likely responsible for handling read/write operations. Ensure that this function is correctly implemented and can handle the state transitions properly.Finally, check that your STM32 firmware and USB host library are up to date.