Add protocol-explicit upload.tool properties required for pluggable discovery compatibility
#12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new flexible and powerful "pluggable discovery" system was added to the Arduino boards platform framework. This system makes it easy for Arduino boards platform authors to use any arbitrary communication channel between the board and development tools.
Boards platform configurations that use the old property syntax are automatically translated to the new syntax by Arduino CLI:
https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-upload-configuration
This translation is only done in platforms that use the old syntax exclusively. If
pluggable_discoveryproperties are defined for the platform then the new pluggable discovery-styleupload.tool.<protocol_name>properties must be defined for each board as well.This platform uses the new pluggable discovery platform properties syntax, so those properties are required.
The required properties are missing, which causes uploads to fail for users of the recent versions of Arduino IDE and Arduino CLI (#11) with an error of the form:
(where
<protocol_name>is the protocol of the selected port, if any)It is also important to provide compatibility with versions of Arduino development tools from before the introduction of the modern pluggable discovery system. For this reason, the old style
<board ID>.upload.toolproperties are retained. Old versions of the development tools will treat the<board ID>.upload.tool.<protocol_name>properties as an unused arbitrary user defined property with no special significance and the new versions of the development tools will do the same for the<board ID>.upload.toolproperties.Originally reported at:
Fixes #11