Set default values for Arduino AVR Boards upload.verify and program.verify #5427
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.
The purpose of this pull request is to provide backwards compatibility of Arduino AVR Boards with Arduino IDE 1.6.8 and previous.
Arduino AVR Boards 1.6.11 added the
{upload.verify}
property to thetools.avrdude.upload
recipe and{program.verify}
to thetools.avrdude.program
recipe to support the File > Preferences > Verify code after upload setting. In Arduino IDE versions 1.6.8 and previousupload.verify
is set to true or false depending on the preferences setting which causes Upload to an AVR board with Arduino IDE 1.6.8 or older and Arduino AVR Boards 1.6.11 or newer to generate AVRDUDE commands like:program.verify
is unset, which causes Upload Using Programmer to an AVR board with Arduino IDE 1.6.8 or older and Arduino AVR Boards 1.6.11 or newer to generate AVRDUDE commands like:AVRDUDE 6.0.1 is able to ignore the spurious item in the command and successfully upload but when used with AVRDUDE 6.3.0 this causes upload to fail:
This means that Arduino AVR Boards 1.6.12 and 1.6.14 are not backwards compatible with Arduino IDE 1.6.8 and previous.
Setting a default empty value for the
upload.verify
andprogram.verify
properties in platform.txt causes Arduino IDE 1.6.8 and older to generate an AVRDUDE command identical to that generated with Arduino AVR Boards 1.6.10 or older(meaning that, as previously, the preferences setting has no effect):Arduino IDE 1.6.9 and newer overrides the default values of
upload.verify
andprogram.verify
, therefore this change has no effect on the AVRDUDE command generated and verification is controlled by the preferences setting as usual.Tested back to Arduino IDE 1.6.2, the oldest IDE version that supports Boards Manager updates.