adafruit / arduino-board-index

Adafruit Package Lists for the Arduino v1.6.4+ Board Manager
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
39 stars 29 forks source link

Samd 1.5.11 2nd #60

Closed hathach closed 4 years ago

hathach commented 4 years ago

redo the release samd 1.5.11 revert the gcc from v7 back to good old v4 by #52

the bpt.ini change is used to release 1.5.11, ci should be able to test this out.

sta-c0000 commented 4 years ago

Hello, may I ask why you are reverting the gcc version?

As explained in #47, package_adafruit_index.json is broken because it is out of sync with Adafruit's SAMD platform.txt, which specifically requests for gcc v7:

[...]
compiler.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
[...]

When using a corrected (#52) package_adafruit_index.json, simply installing: arduino-cli core install adafruit:samd is enough for everything to work: compile, upload, debug, etc...

If you revert the gcc version in package_adafruit_index.json, then arduino-cli compile will fail again.

Looks like Travis CI is able to compile using arduino-cli because it also installs: arduino-cli core install arduino:samd which, in effect, downloads, and makes available, the required compiler actually requested by Adafruit's platform.txt. Otherwise CI would fail if it only installed adafruit:samd because of the broken package_adafruit_index.json.

hathach commented 4 years ago

@sta-c0000 yeah, you are right, I just doublecheck the gcc version used by platform.txt, it use gcc v7, though. @ladyada in that case the original PR should be merged instead of this one.

https://github.com/adafruit/arduino-board-index/pull/59