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 needs DTR signal to be activated from terminal program #921

Closed
RobertK66 opened this issue Jul 14, 2022 · 5 comments
Closed
Milestone

Comments

@RobertK66
Copy link

RobertK66 commented Jul 14, 2022

I think, this is no bug but a feature ;-).
But at least, IMHO it would be worth a note in the documentation. (Chapter 4.4 in 'Getting started ...')

I wasted some time in debugging my Windows 11 - USB driver Stack and tried to understand your documented issues with the 'USB Enumeration workaround' .....

In the end, I found that using the HTerm terminal program is my issue! This terminal software does not set DTR signal on connect per default! Also my own code using NET Serial Port needed the line:

Port.DtrEnable = true;

to be added in order to work. Using putty iso HTerm worked out of the box.
( But once you know the problem, there is a button fot DTR in HTerm 😄 ... )

@lurch
Copy link
Contributor

lurch commented Jul 14, 2022

This was also discussed recently in #906 - I've not been following it very closely, but it seems to be more of a tinyusb thing than a pico-sdk thing? hathach/tinyusb#1548 🤷

@RobertK66
Copy link
Author

Ok, Thx for pointing me there.
I am not sure, if "DTR" is considered part of 'Flow Control' but I also didn't expect the behaviour it currently shows....

@RobertK66
Copy link
Author

Note (to others having problems to get this up and running):
I still need the
TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX=1
to make the com port working on my Windows 11 Notebook. If I leave this to default or 0, then the COM port shows up in device manager but is 'not connectable' (Hterm hangs on connect).

@lurch
Copy link
Contributor

lurch commented Jul 14, 2022

Whether you need the USB_DEVICE_ENUMERATION_FIX or not depends which other USB devices you have connected at the same time. And it's also not needed if you're using a board using RP2040 B2, e.g. Raspberry Pi Pico W.

@kilograham
Copy link
Contributor

merged into develop

@kilograham kilograham modified the milestones: 1.4.1, 1.5.0 Jan 20, 2023
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

3 participants