Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdio over USB-C #96

Open
fhoedemakers opened this issue Aug 19, 2023 · 0 comments
Open

stdio over USB-C #96

fhoedemakers opened this issue Aug 19, 2023 · 0 comments

Comments

@fhoedemakers
Copy link

fhoedemakers commented Aug 19, 2023

I want to use the usb port for printing debug statements over printf by adding pico_enable_stdio_usb(PicoSystem_InfoNes 1) to my CMakeLists.txt

But It seems that connecting the PicoSystem via USB-C to a Raspberry Pi does not create a character device file /dev/ttyACM0, so i can't connect using minicom

Below the /var/log/messages when connecting a Raspberry Pi Pico via USB to a Raspberry Pi. It creates ttyACM0

Aug 19 11:22:23 rpi400 kernel: [ 2774.904957] usb 1-1.3.3: new full-speed USB device number 9 using xhci_hcd
Aug 19 11:22:23 rpi400 kernel: [ 2775.036425] usb 1-1.3.3: New USB device found, idVendor=2e8a, idProduct=000a, bcdDevice= 1.00
Aug 19 11:22:23 rpi400 kernel: [ 2775.036463] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3Aug 19 11:22:23 rpi400 kernel: [ 2775.036480] usb 1-1.3.3: Product: Pico
Aug 19 11:22:23 rpi400 kernel: [ 2775.036494] usb 1-1.3.3: Manufacturer: Raspberry Pi
Aug 19 11:22:23 rpi400 kernel: [ 2775.036507] usb 1-1.3.3: SerialNumber: E6614864D3123934
Aug 19 11:22:23 rpi400 mtp-probe: checking bus 1, device 9: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.3"
Aug 19 11:22:23 rpi400 mtp-probe: bus: 1, device: 9 was not an MTP device
Aug 19 11:22:23 rpi400 kernel: [ 2775.105653] cdc_acm 1-1.3.3:1.0: ttyACM0: USB ACM device
Aug 19 11:22:23 rpi400 kernel: [ 2775.105822] usbcore: registered new interface driver cdc_acm
Aug 19 11:22:23 rpi400 kernel: [ 2775.105835] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Aug 19 11:22:23 rpi400 mtp-probe: checking bus 1, device 9: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.3"
Aug 19 11:22:23 rpi400 mtp-probe: bus: 1, device: 9 was not an MTP device

Below the output when connecting the PicoSystem, does not create a character device:

Aug 19 11:25:05 rpi400 kernel: [ 2937.230889] usb 1-1.3.4: new full-speed USB device number 11 using xhci_hcd
Aug 19 11:25:05 rpi400 kernel: [ 2937.362189] usb 1-1.3.4: New USB device found, idVendor=2e8a, idProduct=000a, bcdDevice= 1.00
Aug 19 11:25:05 rpi400 kernel: [ 2937.362207] usb 1-1.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 19 11:25:05 rpi400 kernel: [ 2937.362213] usb 1-1.3.4: Product: Pico
Aug 19 11:25:05 rpi400 kernel: [ 2937.362218] usb 1-1.3.4: Manufacturer: Raspberry Pi
Aug 19 11:25:05 rpi400 kernel: [ 2937.362222] usb 1-1.3.4: SerialNumber: E461184767453621
Aug 19 11:25:05 rpi400 mtp-probe: checking bus 1, device 11: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.4"
Aug 19 11:25:05 rpi400 mtp-probe: bus: 1, device: 11 was not an MTP device
Aug 19 11:25:05 rpi400 mtp-probe: checking bus 1, device 11: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.4"
Aug 19 11:25:05 rpi400 mtp-probe: bus: 1, device: 11 was not an MTP device

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

No branches or pull requests

1 participant