raspberrypi / pico-examples

BSD 3-Clause "New" or "Revised" License
2.9k stars 835 forks source link

Hello Usb example not working ubuntu 22 #286

Open geoeo opened 2 years ago

geoeo commented 2 years ago

I can not get "hello world" response from screen or minicom in Ubuntu 22.

I can confirm it works because I can get a response via Hercules in Windows 11. So somehow the steps in the published guide are wrong or incomplete.

In Hercules I have to switch the mode from Free to Data. Is there a similar option in screen or minicom?

daniilsunyaev commented 1 year ago

Had similar issue, and noticed that minicom -b 115200 -o -D /dev/ttyACM0 works if you run it as sudo. That is probably related to user restrictions. In my case stat /dev/ttyACM0 shows that it is attached to dialout group: Access: ... Gid: ( 20/ dialout). Users are not in dialout group by default. When I've added my user to this group, minicom command started working as expected.