Define custom cache menu title for SAMD51 boards #73
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 "SparkFun SAMD51 MicroMod" and "SparkFun SAMD51 Thing Plus" boards have a custom "cache" board option that controls flash caching:
https://learn.adafruit.com/adafruit-grand-central/adapting-sketches-to-m0#cache-3026398-25
From the Arduino platform specification:
https://arduino.github.io/arduino-cli/latest/platform-specification/#custom-board-options
This
menu.cache
property was missing (I guess it was not transferred over from Adafruit SAMD Boards):https://github.com/adafruit/ArduinoCore-samd/blob/1.6.5/boards.txt#L17
This resulted in the option not being controllable via a Tools > Cache menu in the Arduino IDE, as is normally the case
for custom board options. More significant, it breaks Arduino IDE 2.x (which is more strict about specification-compliance) when one of those boards is selected.