-
I am working on a project where we want to replace a computer (the Host) with an STM32 microcontroller. The device uses a standard FTDI USB to serial converter as the main mechanism to communicate between the computer and controller. Instead of using the computer, I want to use STM32F4 as a host to communicate with the device. STM32 -> USB -> FTDI -> Machine controller STM32 natively supports USB CDC communication but does not support communication with FTDI chips. On ST website there is an article about an ST partner who developed a commercial USB Stack that supports CDC-FTDI, but since the project is still in an experimental phase I am looking for other alternatives https://www.st.com/en/embedded-software/hcc-usb-stack.html I would appreciate your expert opinion on this. Does tinyUSB lib have support for communication with FTDI chips ? If yes how to get started on that ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
yeah, I used to have a plan to support host FTDI driver as well. I just don't have enough time to implement it. Also, the host stack doesn't support stm32 just yet. It is still WIP, and need lots of development time. My main mcu for developing host stack is lpc18xx (EHCI), once I got all the USBH/HCD API settled. I will look into porting more hcd. |
Beta Was this translation helpful? Give feedback.
-
Thanks @hathach 🙏 Just for future reference maybe this could be helpful. @dkonigsberg shared with us his attempt to write an FTDI driver for STM32. We tried it and the results are promising : https://github.com/dkonigsberg/printalyzer/blob/master/software/firmware/external/usb/class/src/usbh_serial_ftdi.c |
Beta Was this translation helpful? Give feedback.
-
See #2488. |
Beta Was this translation helpful? Give feedback.
-
Just to chime in... The big blocker for myself using TinyUSB host-side (and likely for the OP as well) is simply the lack of STM32 host support itself. Without that, its pretty much impossible to test the class drivers. |
Beta Was this translation helpful? Give feedback.
yeah, I used to have a plan to support host FTDI driver as well. I just don't have enough time to implement it. Also, the host stack doesn't support stm32 just yet. It is still WIP, and need lots of development time. My main mcu for developing host stack is lpc18xx (EHCI), once I got all the USBH/HCD API settled. I will look into porting more hcd.