-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for USB Host/Device #960
Comments
Hi @rtek1000 This core already used those middlewares. For the USB Host, there is no dedicated implementation but the STM32_USB_Host_Library is already included and already in the USB request list: #687 For Ethernet, the STM32Ethernet already provide that and is based on LwIP. As you can see this is the part of STM32duino GitHub organization. |
Thank you for explaining your answer. I did a project with STM32CubeIDE with Mouse (HID) and Pendrive (MSC). The code automatically generated by the IDE included Middlewares HID and MSC, also included FatFs. Are Middlewares also included in the Arduino core? In spite of not having a dedicated implementation, is it possible to perform a functional sketch, or is there still some piece of software missing? |
Yes. |
Modify the platform.txt or use the platform.local.txt to add it to the include path. Arduino_Core_STM32/platform.txt Line 12 in 85a7a28
|
And please, use the forum for those kind of support request. Issue is not intended for support request. |
Thanks, in fact i had already posted on the forum, but maybe very few people know about these details. |
stm32duino.com |
Seriously @rtek1000 |
For the issue open in the arduino-cli, I guess your config is not correct. |
In fact I copied "stm32duino.com" and pasted it into the address bar of the firefox browser. Good it seems to be working. |
Sorry, but I didn't set this up. I just found it in the repository and I'm testing it. |
Oh, OK, understood.
But shouldn't that already be in the repository file? |
No, as I said, currently there is no Host USB support so no need to add it to the Include path. And please use the forum. |
Adding the files here, because the forum does not accept the large size. STM32F407VG (DiyMore) USB Port FS (CN1 or PA11: DM, PA12: DP; PC9: Drive_VBUS) Functional Example; STM32CubeIDE (V1.3.0; FW_F4 V1.25.0) Arduino example; Not Functional, but compiles without errors, It must be missing to call some routine.
Source: http://evenlund.blogspot.com/2016/10/usb-storage-with-stm32f4-discovery-and_58.html |
Dear @rtek1000 , did you get the Arduino example to work? I have a BlackPill STM32F401 and would like to use its USB capabilities to read and write text files to a thumbdrive, nothing else. |
Unfortunately I don't have it, sorry |
STM32CubeIDE (STM32CubeMX) already has support for Audio, HID, MSC, CDC, Virtual Port, MTP. Perhaps it will be much faster if you can use these libraries as a base so that this core can support these functions.
I found an example of Ethernet, LAN8720, which makes use of a LWIP library compatible with this core, and I found it very interesting. Perhaps it was based on the STM32CubeMX LWIP library.
https://github.com/stm32duino/LwIP
The text was updated successfully, but these errors were encountered: