Skip to content

[CDC] Serial USB without DTR #1193

Closed
@jlocsx

Description

@jlocsx

Is your feature request/improvement related to a problem? Please describe.

I recently experienced the following issue using the Blue Pill board (STM32F103C8T6 MCU) with the STM32Duino core:

This is because the DTR signal is not enabled by default on that Serial Terminal. After enabling this signal, I was able to receive the data without any problem.

But I didn't experience any issue when I performed the tests using a Rust program based on the following code with the Blue Pill:

I also tested a Honeywell RFID reader (YJ-HF500) that communicate via USB CDC, and the Terminal was able to receive the data even with the DTR signal disabled.

Describe the solution you'd like

I found the following "work around" in the STM32duino forum:

But I would like something that can be configured through the development environment, without having to modify the usbd_cdc_if.c file directly.

For example, I would like to be able to enable/ disable the DTR signal verification by overwriting some macro. Or is this already possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions