Skip to main content
Visitor II
September 24, 2026
Question

Does STM32Cube USB Host support CH341/CH340 USB-to-serial chips on STM32F405?

  • September 24, 2026
  • 2 replies
  • 44 views

We're using an STM32F405 as a USB OTG FS Host  and need to communicate with a USB-to-serial adapter that uses the CH341 chip.

We could not find any official CH341/CH340 driver or class support in STM32Cube packages or example projects.

Questions:

  1. Can you confirm whether STM32Cube USB Host middleware officially supports CH341/CH340 devices, in any released package (including X-CUBE expansion packages)?
  2. If not supported, is there a recommended reference or guidance from ST for implementing a custom USB Host class driver for vendor-specific USB-to-serial chips like CH341, based on the existing USBH_ClassTypeDef interface used by CDC/MSC/HID?
  3. Are there any known limitations on STM32F405 USB OTG FS Host mode we should be aware of when implementing a custom class driver (e.g., control transfer handling, endpoint limits)?

2 replies

Associate II
September 24, 2026

Probably not.

 

Do you want to connect the CH34x via USB with your STM32F405 to have serial connection to somewhere? Why not use the MCU’s U(S)ARTx directly without USB?

 

Andrew Neil
Super User
September 24, 2026

need (sic?) to communicate with a USB-to-serial adapter that uses the CH341 chip

As ​@mfgkw said, please expand on why you feel the need to do this ?

 

Have you tried it with just a standard CDC ACM Class ?

Have you tried searching to see if anyone has done this with any microcontroller ?

eg,

and, similarly:

 

via: https://www.google.com/search?q=host+CH340+site%3Acommunity.st.com

(other internet search engines are available)

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.