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

it is possible to specify upload-port from the CLI, but not monitor-port (feature request) #4337

Closed
hamishcunningham opened this issue Jun 28, 2022 · 5 comments

Comments

@hamishcunningham
Copy link

If working with multiple boards connected at one time (e.g. when developing a test rig), there are multiple upload ports and multiple corresponding monitor ports. At present it seems impossible to specify the latter.

For example
pio run -e unphone7 --upload-port /dev/ttyUSB1 -t upload -t monitor
will correctly upload to ttyUSB1, but will then monitor on e.g. ttyUSB0

Adding a monitor_port to the .ini file can solve this, but then doesn't cope with subsequent changes.

Addition of a --monitor-port option would solve this, as would defaulting monitor-port to upload-port instead of trying to guess it when the latter is present. An alternative would be to allow overriding of .ini settings from the command line.

Thanks!

@ivankravets
Copy link
Member

Do you type this command manually?

@hamishcunningham
Copy link
Author

Yes, or script it, depending on what I'm working on.

@ivankravets
Copy link
Member

Please re-test with pio upgrade --dev. Thanks.

@hamishcunningham
Copy link
Author

Brilliant, works perfectly :)
Thanks!

@ivankravets
Copy link
Member

Happy coding with PlatformIO! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants