Skip to content

Missing USB CDC config for GenC0 #2582

Closed
@thernstig

Description

@thernstig

When checking boards.txt I see things like:

GenG0.menu.usb.none=None
GenG0.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
GenG0.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
GenG0.menu.usb.CDC=CDC (no generic 'Serial')
GenG0.menu.usb.CDC.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB
GenG0.menu.usb.HID=HID (keyboard and mouse)
GenG0.menu.usb.HID.build.enable_usb={build.usb_flags} -DUSBD_USE_HID_COMPOSITE

But I cannot see this for GenC0. Is this a bug/oversight?

Activity

fpistm

fpistm commented on Nov 26, 2024

@fpistm
Member

Hi @thernstig
USB on C0 is new. It cames with C071xx.
I have to test it as I didn't have the board when added.
I've received the board yesterday and so I will be able to test soon.

fpistm

fpistm commented on Nov 26, 2024

@fpistm
Member

Note you can add it using Arduino feature:
boards.local.txt

thernstig

thernstig commented on Nov 26, 2024

@thernstig
ContributorAuthor

Note you can add it using Arduino feature: boards.local.txt

I unfortunately do not know how to test it myself :(

@fpistm I am not even sure how this works when using the STM32 MCUs such as C071xx. If we look at ATMega MCUs, their bootloader supports USB CDC by default and can be set to upload new firmware via the Arduino IDE via USB CDC.

But STM32 C071 default booatloader does not have USB CDC; only USB DFU.

So I cannot even grasp how it can work for this stm32duino to allow for the Arduino IDE to upload new firmware via the COM-port.

changed the title [-]Bug: Missing USB CDC config for `GenC0`[/-] [+]Missing USB CDC config for `GenC0`[/+] on Nov 27, 2024
added this to the 2.10 milestone on Nov 27, 2024
added a commit that references this issue on Nov 27, 2024
ae5a515
fpistm

fpistm commented on Nov 27, 2024

@fpistm
Member

Note you can add it using Arduino feature: boards.local.txt

I unfortunately do not know how to test it myself :(

You can refer to Arduino documentation: https://arduino.github.io/arduino-cli/0.34/platform-specification/#boardslocaltxt

@fpistm I am not even sure how this works when using the STM32 MCUs such as C071xx. If we look at ATMega MCUs, their bootloader supports USB CDC by default and can be set to upload new firmware via the Arduino IDE via USB CDC.

But STM32 C071 default booatloader does not have USB CDC; only USB DFU.

So I cannot even grasp how it can work for this stm32duino to allow for the Arduino IDE to upload new firmware via the COM-port.

Arduino probably use the 1200bps feature which is catched by the USB CDC then reboot in bootloader mode.
At this time this is not supported here. You have to manually enter in BL mode.
I've made a PR several years ago as a POC but never find the time to end it (#710).

Anyway, I've tested USB and enable it properly, see #2584.

1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Missing USB CDC config for `GenC0` · Issue #2582 · stm32duino/Arduino_Core_STM32