GithubHelp home page GithubHelp logo

please add toolsDependencies for [email protected] in the adafruit:samd boards for all the feather M0 boards about arduino-board-index HOT 13 CLOSED

adafruit avatar adafruit commented on June 2, 2024 1
please add toolsDependencies for [email protected] in the adafruit:samd boards for all the feather M0 boards

from arduino-board-index.

Comments (13)

ladyada avatar ladyada commented on June 2, 2024 1

ok 1.5.1 is release, lemme know if that doesnt fix it!

from arduino-board-index.

ladyada avatar ladyada commented on June 2, 2024

we cant reproduce this (maybe because we're not using the CLI?) could you add the line in question as a PR so it works for you, then we'll test it still works for us and merge :)

from arduino-board-index.

ScottiSws avatar ScottiSws commented on June 2, 2024

I'll be sending you a PR in a bit and found a way to replicate the issue in Arduino IDE 1.8.8.

I fixed the issue in bpt.ini for when you update adafruit-samd to its next version and hacked up the package_adafruit_index.json to add a fake 1.2.10 version for replicating the issue.

  1. Start clean on Ubuntu 18.04 ( Version probably doesn't matter ) Delete .arduino15 and the Sketch direction ( clean out libraries, etc ). Essentally start like a brand new install of the IDE.

  2. Start the bpt.py test-server on my altered index and follow instructions for using it with the IDE.

  3. Choose Adafruit SAMD v1.2.9 only.

  4. Get the Blink Sketch, choose Adafruit Feather M0 Express board and proper port.

  5. when you build and upload you should get this error.
    java.io.IOException: Cannot run program "{runtime.tools.bossac-1.7.0.path}/bossac": error=2, No such file or directory

  6. Update the Adafruit SAMD to v1.2.10 ( the fake version with the bossac 1.7.0 dependency )

  7. when you rebuild the Blink sketch it should upload and work properly now.

from arduino-board-index.

ladyada avatar ladyada commented on June 2, 2024

kk!

from arduino-board-index.

ScottiSws avatar ScottiSws commented on June 2, 2024

Here you go. PR #23

I tried to use bpt to update but I can't really force adafruit-samd to a new version and the --force option seemed to make a second 1.2.9 which didn't seem right. That's why I faked the index file.

from arduino-board-index.

per1234 avatar per1234 commented on June 2, 2024

we cant reproduce this

I can reproduce it in the Arduino IDE as well. Arduino SAMD Boards 1.6.7 through 1.6.21 used bossac 1.7.0 so the boards of Adafruit SAMD Boards with upload.tool=bossac happen by chance to work fine with any of those Arduino SAMD Boards versions installed. But Arduino switched to a new version in Arduino SAMD boards 1.6.22 and newer so if you have a modern version of Arduino SAMD Boards installed you can't upload to any of the Adafruit SAMD Boards with upload.tool=bossac.

from arduino-board-index.

ladyada avatar ladyada commented on June 2, 2024

@per1234 should we change to upload.tool=bossac-1.7.0? then?

from arduino-board-index.

per1234 avatar per1234 commented on June 2, 2024

No. The name of the tool is bossac so that's correct:
https://github.com/adafruit/ArduinoCore-samd/blob/master/platform.txt#L120-L130
The problem is the bossac tool specifies bossac version 1.7.0 specifically:
https://github.com/adafruit/ArduinoCore-samd/blob/master/platform.txt#L120

tools.bossac.path={runtime.tools.bossac-1.7.0.path}

but your Boards Manager JSON file doesn't have bossac 1.7.0 as one of the toolsDependencies items for Adafruit SAMD Boards so there is no guarantee that bossac 1.7.0 will be installed. It may just happen to be if the user has an outdated version of Arduino SAMD Boards installed, but most people are likely using the latest version of Arduino SAMD Boards.

The solution is #23, which adds the missing toolsDependencies item for bossac 1.7.0.

from arduino-board-index.

ScottiSws avatar ScottiSws commented on June 2, 2024

It's been a few months but I authored the pull request #23. You'll need to use my instructions from Feb 5th exactly. Don't automatically install the Arduino SAMD package thinking you need it. You don't! Your Adafruit SAMD package will work by itself if you fix the bossac-1.7.0 dependency.

from arduino-board-index.

ladyada avatar ladyada commented on June 2, 2024

oh duh - missed that. ok i 'redid' the PR, thank you and sorry it didnt get merged then. we have another bug to fix so will be picked up very soon in 1.5.1 :)

from arduino-board-index.

ladyada avatar ladyada commented on June 2, 2024

closin' for now - reopen if still a problem!

from arduino-board-index.

szymonpk avatar szymonpk commented on June 2, 2024

@Scotti6666 even with your PR it doesn't work for me. Any idea why?

from arduino-board-index.

ScottiSws avatar ScottiSws commented on June 2, 2024

@szymonpk, there isn't enough information in your post to make any determination. That said, you might try reinstalling and only selecting the "Adafruit SAMD" and nothing else.

from arduino-board-index.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.