Jesse Sivonen
05/21/2025, 11:22 AMjag monitor of my Groundstudio Carbon S2 development board because it does not appear as serial device when connected to my Linux system via USB cable. The serial device does appear at path /dev/ttyACM0 when manually setting the chip into download mode using hardware buttons. The device stopped appearing after flashing Jaguar to the board using jag flash. To me, according to what I've read, that could hint that the firmware does not enable the serial USB device class of the board. Shouldn't Jaguar do that automatically? Any help would be appriciated, because debugging program is quite hard without any logging.floitsch
05/21/2025, 11:59 AMUSB CDC enabled.
Since this is an sdkconfig, it's not just something Jaguar can enable/disable, but it requires a new envelope (which contains the '.elf' file).
I have an S2 on my desk and will see if I can make the USB connection for terminal output work.
In the meantime: do you maybe have an additional esp32 or similar board lying around? The carbon S2 exposes the TX0, so if you have a board that has a USB-uart chip on it (can even be a non-esp32 chip), then you might (ab)use that board's USB-UART chip for output.
Basically, you could then just connect GND, TX0, and disable the other board (by pulling it's EN to GND).Jesse Sivonen
05/21/2025, 12:14 PMfloitsch
05/21/2025, 12:18 PMfloitsch
05/21/2025, 12:18 PM[498355.059862] cdc_acm 5-2.2:1.0: ttyACM0: USB ACM device
[498355.067022] usb 5-2.2: USB disconnect, device number 71
[498355.717746] usb 5-2.2: new full-speed USB device number 72 using xhci_hcd
[498356.302995] usb 5-2.2: device descriptor read/64, error -32
[498374.320576] usb 5-2.2: unable to read config index 0 descriptor/all
[498374.320594] usb 5-2.2: can't read configurations, error -110
[498374.408770] usb 5-2.2: new full-speed USB device number 73 using xhci_hcd
and similar errors.floitsch
05/21/2025, 12:19 PMJesse Sivonen
05/21/2025, 12:28 PMfloitsch
05/21/2025, 12:30 PMfloitsch
05/21/2025, 12:30 PMJesse Sivonen
05/21/2025, 12:31 PMfloitsch
05/21/2025, 12:31 PMfloitsch
05/21/2025, 12:32 PMfloitsch
05/21/2025, 12:32 PMjag scan), or it could be stuck.floitsch
05/21/2025, 12:34 PMJesse Sivonen
05/21/2025, 12:35 PMfloitsch
05/21/2025, 12:36 PMjag config, so I don't need to type it. So those are correct.Jesse Sivonen
05/21/2025, 12:36 PMJesse Sivonen
05/21/2025, 12:36 PMfloitsch
05/21/2025, 12:40 PMfloitsch
05/21/2025, 12:41 PMfloitsch
05/21/2025, 12:42 PMfloitsch
05/21/2025, 12:42 PMjag flash esp32s2-cdcfloitsch
05/21/2025, 12:42 PMfloitsch
05/21/2025, 12:42 PMjag version to be sure).Jesse Sivonen
05/21/2025, 12:43 PMVersion: v1.51.0
SDK version: v2.0.0-alpha.180
Build date: 2025-05-10T05:48:25Zfloitsch
05/21/2025, 12:43 PMJesse Sivonen
05/21/2025, 12:46 PMfloitsch
05/21/2025, 12:46 PMfloitsch
05/21/2025, 12:47 PMfloitsch
05/21/2025, 12:47 PMfloitsch
05/21/2025, 12:49 PMfloitsch
05/21/2025, 12:50 PMJesse Sivonen
05/21/2025, 12:53 PMkernel: usb 1-3: new full-speed USB device number 14 using xhci_hcd
kernel: usb 1-3: device descriptor read/64, error -71
kernel: usb 1-3: device descriptor read/64, error -71
kernel: usb 1-3: new full-speed USB device number 15 using xhci_hcd
kernel: usb 1-3: device descriptor read/64, error -71
kernel: usb 1-3: device descriptor read/64, error -71
kernel: usb usb1-port3: attempt power cycle
kernel: usb 1-3: new full-speed USB device number 16 using xhci_hcd
kernel: usb 1-3: device descriptor read/8, error -71
kernel: usb 1-3: device descriptor read/8, error -71
kernel: usb 1-3: new full-speed USB device number 17 using xhci_hcd
kernel: usb 1-3: device descriptor read/8, error -71
kernel: usb 1-3: device descriptor read/8, error -71
kernel: usb usb1-port3: unable to enumerate USB deviceJesse Sivonen
05/21/2025, 12:54 PMJesse Sivonen
05/21/2025, 12:56 PMjag scan, so that also somethingfloitsch
05/21/2025, 12:59 PMfloitsch
05/21/2025, 1:00 PMjag scan.floitsch
05/21/2025, 1:00 PMfloitsch
05/21/2025, 1:00 PMfloitsch
05/21/2025, 1:00 PMfloitsch
05/21/2025, 1:05 PMfloitsch
05/21/2025, 1:58 PMfloitsch
05/21/2025, 1:59 PMfloitsch
05/21/2025, 2:03 PMfloitsch
05/21/2025, 6:12 PMfloitsch
05/21/2025, 6:14 PMJesse Sivonen
05/22/2025, 7:23 PMfloitsch
05/22/2025, 8:32 PM