Closed
Description
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?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Activity
fpistm commentedon Nov 26, 2024
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 commentedon Nov 26, 2024
Note you can add it using Arduino feature:
boards.local.txt
thernstig commentedon Nov 26, 2024
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.
[-]Bug: Missing USB CDC config for `GenC0`[/-][+]Missing USB CDC config for `GenC0`[/+]chore(c0): enable usb
fpistm commentedon Nov 27, 2024
You can refer to Arduino documentation: https://arduino.github.io/arduino-cli/0.34/platform-specification/#boardslocaltxt
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