2022-07-06 02:36 AM
I am trying to implement an USB logger. I have initially started with the F769 Discovery Board what worked fine using the USB_HS implementation. Because my final hardware does use USB_FS and I do not own an F769 Eval Board I tried the FatFs_USBDisk example for the 767 Nucleo board what sows the behavior above.
The Nucleoboard is unmodified, SB 125, 127, 132, 133, !184, 185 set as stated in UM1974. UsbStick and MicroAdapter Tested in HS Example. Example is based on V1.17.0
Solved! Go to Solution.
2022-08-12 03:45 AM
Hello,
Please note that the reported issue was already fixed in stm32_mw_usb_host v3.5.0.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-07-22 06:36 AM
Hi MMenz.1,
I am currently experiencing the same issue, and was wondering if you ever found a solution?
I have turned on the USB debugging and can see that the device seems to be working quiet well before this, printing out the manufacturer and product name of my memory stick but seems to fail here.
Thanks
2022-07-22 01:12 PM
Hi same here with stm32f765 o. Custom bord.
This problem rise as soon as we use the last usb host lib v3.4.1.
No problem with v3.4.0.
Seem's that hal(1.17.0 or v.1.16.2) and autogenerated code by cubemx.6.6.1 or v6.5.0 are not guilty...
2022-07-23 09:46 PM
Hi @Amel NASRI , other peoples hit same error of USB host lib.
That i reported to you in :
2022-07-24 11:41 PM
Hi AfjSpi,
I put it aside after I placed this post. I will test v3.4.0. this week and forward my findings
2022-07-26 06:04 AM
I have found a flaw in the code of the middleware
https://github.com/STMicroelectronics/stm32_mw_usb_host/issues/8
Today you have 2 options until ST fixes the code,
ep_descriptor->wMaxPacketSize |= MIN((uint16_t)(LE16(buf + 4) & 0x7FFU), (uint16_t)USBH_MAX_DATA_BUFFER);
With USB HS the previous code does work because the value stored in buf is the same as USBH_MAX_DATA_BUFFER
2022-07-27 07:38 AM
Good job! This fixed my problem. Hopefully ST guys will have this fixed in the next release. Hello... Anybody from ST, please raise your hand if you get this message!
2022-08-12 03:45 AM
Hello,
Please note that the reported issue was already fixed in stm32_mw_usb_host v3.5.0.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.