Skip to content

Conversation

pennam
Copy link

@pennam pennam commented Aug 12, 2025

board linux win mac
Portenta C33 ✔️ *
Portenta H7 ✔️
GIGA R1 WiFi ✔️
OPTA ✔️
  • Sometimes i get dfu-util: Cannot open DFU device 2341:0368 found on devnum 73 (LIBUSB_ERROR_ACCESS) but upload works

@pennam pennam force-pushed the c33-next branch 2 times, most recently from 5c212bc to 263cf69 Compare August 22, 2025 08:38
@pennam pennam marked this pull request as ready for review August 22, 2025 09:04
@pennam
Copy link
Author

pennam commented Aug 25, 2025

@leonardocavagnis can you give it a spin a your mac?

@leonardocavagnis
Copy link
Member

@pennam Done ;)
Tested on MacOS

board linux win mac
Portenta C33 ✔️ * ✔️
Portenta H7 ✔️ ✔️
GIGA R1 WiFi ✔️ ✔️
OPTA ✔️

@pennam pennam changed the title Fix Sketch upload on Portenta C33 Portenta C33: fix Sketch upload Aug 29, 2025
@KurtE
Copy link

KurtE commented Aug 30, 2025

@pennam @facchinm - Not sure if best place to ask... But I am playing around with zephyr test sketches for some of the Camera

and like experiments/improvements. And as the west builds started to complain about all of my USB stuff being obsolete
I decided to enable the CONFIG_USB_DEVICE_STACK_NEXT and I used many of the config stuff (and code)
that you are merging... Currently on H7.

CONFIG_USB_DEVICE_STACK_NEXT=y
CONFIG_USB_DEVICE_PRODUCT="Arduino Portenta H7"
CONFIG_USB_DEVICE_MANUFACTURER="Arduino"
CONFIG_USB_DEVICE_VID=0x2341
CONFIG_USB_DEVICE_PID=0x005b
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n

CONFIG_SERIAL=y
CONFIG_UART_LINE_CTRL=y
CONFIG_USBD_CDC_ACM_CLASS=y
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
CONFIG_USBD_CDC_ACM_LOG_LEVEL_ERR=y
CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y
CONFIG_UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED=y
CONFIG_USBD_LOG_LEVEL_ERR=y

I am getting some USB Serial again. But the debug output starts off with:

uart:~$
[00:00:01.630,000] <err> usbd_cfg: Stack was compiled without High-Speed support

I tried adding:
CONFIG_UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED=y
But did not make any difference...

I am trying to remember which boards support HS on the main device USB?

Suggestions?

Next up updating the sketch/App I am using to test some of the GC2145 vision_stm32_dcmi.c code on the Nicla Vision.

@pennam pennam force-pushed the c33-next branch 4 times, most recently from fc7c528 to 59f61cc Compare September 19, 2025 09:26
@leonardocavagnis leonardocavagnis merged commit 3ac4639 into arduino:main Sep 19, 2025
52 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants