2025-08-26 9:59 AM - last edited on 2025-08-27 2:04 AM by Andrew Neil
https://controllerstech.com/stm32-usb-host-msc/
I downloaded the app from this site, and the project from 2020 works. However, even though I followed the same tutorial, my code doesn't work in the 2025 version.
Solved! Go to Solution.
2025-08-27 1:58 AM - edited 2025-08-27 2:00 AM
This solved. F407-DISC USB MSC Host 2020 old version usbh_platform.c
if GPIO_Output PC0 state = 1 > GPIO_PIN_Set
if GPIO_Output PC0 state = 0 > GPIO_PIN_Reset
but the 2025 new version its reversed
if GPIO_Output PC0 state = 0 > GPIO_PIN_Set
if GPIO_Output PC0 state = 1 > GPIO_PIN_Reset
I Chance usbh_platform.c and this problem solved
2025-08-26 10:31 AM
Hello @spacemonochrome
Do you have an error message? where the code hangs/stop?
Are you using latest firmware package and tools version?
2025-08-27 1:58 AM - edited 2025-08-27 2:00 AM
This solved. F407-DISC USB MSC Host 2020 old version usbh_platform.c
if GPIO_Output PC0 state = 1 > GPIO_PIN_Set
if GPIO_Output PC0 state = 0 > GPIO_PIN_Reset
but the 2025 new version its reversed
if GPIO_Output PC0 state = 0 > GPIO_PIN_Set
if GPIO_Output PC0 state = 1 > GPIO_PIN_Reset
I Chance usbh_platform.c and this problem solved
2025-08-27 2:02 AM - edited 2025-08-27 2:04 AM
Thanks for posting the solution!
@spacemonochrome wrote:https://controllerstech.com/stm32-usb-host-msc/
I downloaded the app from this site
Note that it's a third-party site - nothing to do with ST.
You need to report problems with their materials to them:
https://controllerstech.com/contact-us/