Comments (11)
Based on issue #22...
Tool versions specified in .arduino15/packages/adafruit/hardware/samd/1.5.7/platform.txt
:
[...]
compiler.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
[...]
tools.bossac.path={runtime.tools.bossac-1.7.0-arduino3.path}
[...]
tools.openocd.path={runtime.tools.openocd-0.10.0-arduino7.path}
[...]
...are out of sync with the 1.5.7 "toolsDependencies"
versions specified in package_adafruit_index.json
:
{
"packager": "arduino",
"name": "arm-none-eabi-gcc",
"version": "4.8.3-2014q1"
},
{
"packager": "arduino",
"name": "bossac",
"version": "1.7.0"
},
{
"packager": "arduino",
"name": "openocd",
"version": "0.9.0-arduino"
},
Changing package_adafruit_index.json
to match platform.txt
does the trick:
{
"packager": "arduino",
"name": "arm-none-eabi-gcc",
"version": "7-2017q4"
},
{
"packager": "arduino",
"name": "bossac",
"version": "1.7.0-arduino3"
},
{
"packager": "arduino",
"name": "openocd",
"version": "0.10.0-arduino7"
},
I tested and it works (but had to delete .arduino15/packages/
and re-install: arduino-cli core install adafruit:samd
).
It appears it's important those two files have matching versions, but it's not clear to me how they are meant to be kept in sync in this repository? Manually?
from arduino-board-index.
hi, unknown why that's happening - we've had no complaints or issue with IDE users or with our travisCI script https://github.com/adafruit/travis-ci-arduino/blob/master/install.sh
from arduino-board-index.
I just noticed that certain features, like the Adafruit_NeoPixel_ZeroDMA
library, will not work when compiling using --fqbn arduino:samd:adafruit_circuitplayground_m0
; whereas they do work using the adafruit
fqbn.
So I'm working around this issue by compiling with --fqbn adafruit:samd:adafruit_circuitplayground_m0
, then using uf2conv.py to convert the .bin
into a .uf2
to copy to the CPLAYBOOT
USB mount.
from arduino-board-index.
I can confirm this is also happening with an Adafruit Feather M0.
arduino-cli
does not expand the properties for the upload tool - on my machine, the command that is being executed is:
"{runtime.tools.bossac-1.7.0-arduino3.path}/bossac" --port=cu.usbmodem14301 -U true -i -e -w -v "test/test.adafruit.samd.adafruit_feather_m0.bin"
It looks like there is something wrong with the expansion of {runtime.tools.bossac-1.7.0-arduino3.path}
.
from arduino-board-index.
Thanks @sta-c0000 for finding the workaround - I spent an hour or so looking at these files and making changes but nothing took effect!
from arduino-board-index.
Thanks @sta-c0000 for finding the workaround - I spent an hour or so looking at these files and making changes but nothing took effect!
After running arduino-cli core update-index
you will find the downloaded package_adafruit_index.json
file in the .arduino15/
folder. You can then make the changes @sta-c0000 suggested and retry uploading.
from arduino-board-index.
Hmmm, there's been two more versions generated since?...
I've just created PR#52 for bpt.ini so that at least future versions should have the correct toolsDependencies... hopefully.
I'll add that Initially I was only able to compile because I had also installed arduino:samd which has correct toolsDependencies and downloaded the correct compiler requested by adafruit:samd. Once package_adafruit_index.json is corrected, then you should be able to compile and upload without needing to also install arduino:samd ...saves disk space.
from arduino-board-index.
I am having the same problem with my ItsyBitsym0. I am pretty new to this and I thought I would try the Arduino IDE. What I don't understand is that they share the same location for the board files (the arduino:samd and adafruit:samd I installed with the arduino-cli were detected) and the upload works fine in the GUI app and not in the CLI. So there may be a problem with the different versions of bossac in platform.txt and package_adafruit_index.json, but I don't understand how it would work fine in the IDE and not the cli if it was the only problem.
Anyway, I don't really undersand all this yet and there is probably a good explanation for it, but I find it a bit odd.
from arduino-board-index.
its def possible to use the CLI for itsym0 - we use it in our actions CI
https://github.com/adafruit/ci-arduino/blob/master/build_platform.py
from arduino-board-index.
Yeah well, everything compiles fine. It's only the upload that doesn't work with the same Error during Upload: cannot execute upload tool: fork/exec {runtime.tools.bossac-1.7.0-arduino3.path}/bossac: no such file or directory
error.
I simply thought it was strange that the issue only affects the cli and not the ide. I guess that the ide does things differently somehow. I thought the ide only used the arduino-cli behind the scenes, but it looks like it's not that simple 😐
Hopefully the pr #52 will fix it 😃
from arduino-board-index.
Closing, Thanks! Works since 1.5.11 package_adafruit_index.json
now that it is in sync with Adafruit's SAMD platform.txt
. And we no longer need to also install arduino:samd.
Note (to users) that it is easiest to add the file ~/.arduino15/arduino-cli.yaml
with the contents:
board_manager:
additional_urls:
- https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
...otherwise you would need to add the following parameter for most arduino-cli
commands, including upload:
arduino-cli [commands] --additional-urls "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"
So, from scratch (assuming you've created ~/.arduino15/arduino-cli.yaml
):
$ arduino-cli core update-index
$ arduino-cli core install adafruit:samd
$ arduino-cli board list # (= list connected; listall = all known)
# using fqbn and port from above command, to compile and upload:
$ arduino-cli compile --fqbn {fqbn} MyFirstSketch
$ arduino-cli upload -p {port} --fqbn {fqbn} MyFirstSketch
from arduino-board-index.
Related Issues (11)
- One URL for all Adafruit boards HOT 1
- SAMD boards: REG_SERCOM?_*_DATA has wrong data width HOT 3
- [v1.4.0] Adafruit Feather nRF52840 Express: Cannot link to `Serial` HOT 1
- "bpt.py update_index" should remove .git folder before writing archive file HOT 7
- please add toolsDependencies for [email protected] in the adafruit:samd boards for all the feather M0 boards HOT 13
- Missing avrdude.conf from AVR Boards package HOT 2
- You can't reference bootloader files from another core HOT 5
- URL Doesn't Exist HOT 4
- AVR 1.4.10 not in repository, is in the json HOT 3
- Installation of "adafruit:samd" blocked by dependency on bossa(c) 1.8 (not available for the current OS) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-board-index.