-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Extended Pluggable Monitor specification to allow board-specific settings to be applied #1855
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1855 +/- ##
==========================================
+ Coverage 36.39% 36.46% +0.06%
==========================================
Files 231 231
Lines 19573 19618 +45
==========================================
+ Hits 7124 7154 +30
- Misses 11620 11635 +15
Partials 829 829
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
c902e0f
to
6499950
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Describe the problem
Pluggable monitor port configuration properties are not recognized when set via custom board options
To reproduce
Create a board definition that sets pluggable monitor port configuration properties via custom board options:
menu.rts=RTS
menu.dtr=DTR
foo.name=Configurable
foo.menu.rts.on=On
foo.menu.rts.on.monitor_port.serial.rts=on
foo.menu.rts.off=Off
foo.menu.rts.off.monitor_port.serial.rts=off
foo.menu.dtr.on=On
foo.menu.dtr.on.monitor_port.serial.dtr=on
foo.menu.dtr.off=Off
foo.menu.dtr.off.monitor_port.serial.dtr=off
Set the option via the --fqbn
argument of an arduino-cli monitor
command.
🐛 The port is not configured by the property.
Expected behavior
Pluggable monitor port configuration properties can be set via custom board options.
If this is not going to be supported, then the deficiency must be documented in the Arduino Platform Specification.
Arduino CLI version
Operating system
Windows 10
Additional context
Arduino IDE 1.x recognizes the properties as expected when set via custom board options:
menu.rts=RTS
menu.dtr=DTR
bar.menu.rts.on=On
bar.menu.rts.on.serial.disableRTS=false
bar.menu.rts.off=Off
bar.menu.rts.off.serial.disableRTS=true
bar.menu.dtr.on=On
bar.menu.dtr.on.serial.disableDTR=false
bar.menu.dtr.off=Off
bar.menu.dtr.off.serial.disableDTR=true
I rebased the PR and fixed this issue, now the submenu options are supported. |
Co-authored-by: per1234 <accounts@perglass.com>
fccdd16
to
a2621d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Cristian!
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
Adds the possibility for board developers to override the default port settings when the monitor is opened.
This is useful in particular for the
serial
port settings ofdtr
andrts
since the Arduino IDE 1.8.x allowed the followingboard.txt
properties:To generalize the above to the Pluggable Monitor a new way to override specific port settings has been added:
where:
BOARD_ID
is the board identifierPROTOCOL
is the port protocolSETTING_NAME
andSETTING_VALUE
are the port setting and the desired valuethis is general enough to cover also the old use case (
dtr
andrts
).For backward compatibility we will automatically convert the old directives
disableRTS
anddisableDTR
to the new one.The directives:
The directives above are followed.
No
Related:
rts
anddtr
settings: Arduino IDE 2.0 problem with ESP32-CAM-MB and Module CH340G serial-monitor#17rts
anddtr
on the serial-monitor: Added "rts" and "dtr" configuration parameters. serial-monitor#21