GithubHelp home page GithubHelp logo

adafruit / arduino-board-index Goto Github PK

View Code? Open in Web Editor NEW
39.0 13.0 30.0 1.97 GB

Adafruit Package Lists for the Arduino v1.6.4+ Board Manager

Home Page: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

Python 100.00%

arduino-board-index's Introduction

arduino-board-index's People

Contributors

deanm1278 avatar dhalbert avatar hathach avatar ladyada avatar per1234 avatar sta-c0000 avatar tdicola avatar toddtreece avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-board-index's Issues

arduino-cli cannot upload to Circuit Playground Express using adafruit FQBN

arduino-cli cannot upload to Circuit Playground Express using FQBN (Fully Qualified Board Name) adafruit:samd:adafruit_circuitplayground_m0

Error reported:

Error during Upload: cannot execute upload tool: fork/exec {runtime.tools.bossac-1.7.0-arduino3.path}/bossac: no such file or directory

Upload works OK using FQBN arduino:samd:adafruit_circuitplayground_m0

Apologies, the differences between the two (adafruit vs arduino) FQBNs is not clear to me. I imagine this issue implies users should use the arduino FQBN, but then why is there an adafruit one? EDIT: required for certain features, see two posts below...

Thank you!

More information

$ arduino-cli version
arduino-cli Version: 0.6.0 Commit: 3a08b07

With following added to ~/.arduino15/arduino-cli.yaml (or can use param below):

board_manager:
  additional_urls:
    - https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
$ arduino-cli core update-index # --additional-urls "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"
Updating index: package_index.json downloaded
Updating index: package_index.json downloaded
Updating index: package_adafruit_index.json downloaded
$ arduino-cli core search Adafruit Circuit Playground Express
ID            Version Name
adafruit:samd 1.5.7   Adafruit SAMD Boards
arduino:samd  1.8.4   Arduino SAMD Boards (32-bits ARM Cortex-M0+)

$ arduino-cli core install adafruit:samd
$ arduino-cli core install arduino:samd

Compile works, but upload fails using adafruit:samd:adafruit_circuitplayground_m0

$ arduino-cli compile --fqbn adafruit:samd:adafruit_circuitplayground_m0 MyFirstSketch
Sketch uses 10412 bytes (3%) of program storage space. Maximum is 262144 bytes.
$ arduino-cli upload -p /dev/ttyACM0 --fqbn adafruit:samd:adafruit_circuitplayground_m0 MyFirstSketch
No new serial port detected.
Error during Upload: cannot execute upload tool: fork/exec {runtime.tools.bossac-1.7.0-arduino3.path}/bossac: no such file or directory

Compile and upload works using arduino:samd:adafruit_circuitplayground_m0

$ arduino-cli compile --fqbn arduino:samd:adafruit_circuitplayground_m0 MyFirstSketch
Sketch uses 11176 bytes (4%) of program storage space. Maximum is 262144 bytes.
$ arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:adafruit_circuitplayground_m0 MyFirstSketch
No new serial port detected.
Atmel SMART device 0x10010005 found
Device       : ATSAMD21G18A
{...}  # ...redacted ...works```

AVR 1.4.10 not in repository, is in the json

package_adafruit_index.json has an entry for 1.4.10

 "category": "Adafruit",
          "name": "Adafruit AVR Boards",
          "url": "https://adafruit.github.io/arduino-board-index/boards/adafruit-avr-1.4.10.tar.bz2",
          "checksum": "SHA-256:9ba950a575eeb5927dc8d1849ed5dc823cbe0585d616f6cc690b5ccef4ffc1fa",
          "help": {
            "online": "https://forums.adafruit.com"
          },
          "version": "1.4.10",
          "architecture": "avr",
          "archiveFileName": "adafruit-avr-1.4.10.tar.bz2",

But the file isn't in the repo. The entry was added 19 hours ago.

Missing avrdude.conf from AVR Boards package

avrdude.conf has been missing since AVR Boards 1.1.0 which causes
avrdude: can't open config file "C:\Users\per\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.3.0/avrdude.conf": No such file or directory error when you try to Burn Bootloader.

SAMD boards: REG_SERCOM?_*_DATA has wrong data width

REG_SERCOM0_SPI_DATA for example is listed as...

(*(RwReg  *)...

...but the data sheet (across all SERCOM modes, but on page 532 of the AdaFruit-hosted datasheet PDF, section 27.8.10 in this example) lists the register is 16-bit, so the declaration should be...

(*(RwReg16*)...

...for all the various REG_SERCOM?_*_DATA register declarations.

[v1.4.0] Adafruit Feather nRF52840 Express: Cannot link to `Serial`

  • Arduino board: Adafruit Feather nRF52840 Express

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19

  • Adafruit nRF52 Boards version: 1.4.0

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too): LIST REPRO STEPS BELOW

  1. Attempt to compile the follow code for the Adafruit Feather nRF52840 Express.
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  while (!Serial);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Hello, World!");
  delay(5000);
}

I have also tried downgrading to v1.3.0, but that did NOT make a difference.

Installation of "adafruit:samd" blocked by dependency on bossa(c) 1.8 (not available for the current OS)

Found a defect in the package definition while attempting installation of the "adafruit:samd" core:
Error during install: tool arduino:[email protected] not available for the current OS

  • Arduino board: Adafruit Feather M0 (RFM96 LoRa Radio)

  • Arduino IDE version: n/a (using arduino-cli at v0.18.1)

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

  1. Start with a clean NixOS v21.11 install atop the Raspberry Pi 4B (4GB version) (or equivalent aarch64 system architecture).
  2. Execute nix-shell -p arduino-cli, then arduino-cli config init
  3. Add the applicable URL to the 'additional_urls' section of the 'board_manager' section in your newly created ~/.arduino15/arduino-cli.yaml file:
    https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
  4. Execute arduino-cli core update-index (possibly unnecessary step)

(At this point, the test environment is ready to reproduce the defect, this next step is what failed on my system.)

  1. Finally, run the command to install the necessary core for the Feather M0:
    arduino-cli core install adafruit:samd
[shell:~/dev/feather]$ arduino-cli core install adafruit:samd
Downloading packages...
adafruit:arm-none-eabi-gcc@9-2019q4 already downloaded
arduino:[email protected] already downloaded
Error during install: tool arduino:[email protected] not available for the current OS

What this message did not tell me is how to resolve the problem myself. It did however inform me of the existence of a 1.7 version of the bossac library, which was correlated by my bug report / query with the Arduino repositories. That conversation led me here.

Huge thanks to @per1234 for confirming some root causes and identifying several paths forward in their exceptionally informational response to my initial attempt at reporting this defect.


As I said on the Arduino side, I'm more than happy to contribute to the solution on this...the observation that there's confusion for other users regarding who to talk to about this sort of issue (and even where to resolve it) are ongoing conversations.

please add toolsDependencies for [email protected] in the adafruit:samd boards for all the feather M0 boards

You specify the following in platform.txt
tools.bossac.path={runtime.tools.bossac-1.7.0.path}

Then in boards.txt you specify it as the upload tool for the M0 Express.
adafruit_feather_m0_express.upload.tool=bossac

But since you don't have it as a toolsDependencies in your package_adafruit_index.json for adafruit:[email protected], you will get a "can't find {runtime.tools.bossac-1.7.0.path}/bossac" error during an upload.

The IDE seems to find bossac randomly. Maybe something gets cached at some point. You can definitely see this issue if you use the new alpha arduino-cli tool. I think it gets cached from the arduino:samd package but I'm not sure. When it happens I usually need to delete .arduino15 and reload.

If I put your index url into arduino-cli via .cli-config.yml (this file must live next to exe and not in $HOME), then manually add the toolsDependencies to adafruit:[email protected] I can install everything, compile, and upload all from command line.

https://github.com/arduino/arduino-cli

You can't reference bootloader files from another core

metro.bootloader.file=arduino:optiboot/optiboot_atmega328.hex etc. doesn't work, I know it should work and there is even an issue(arduino/Arduino#2656) requesting this functionality for the Arduino IDE, but it doesn't work:
avrdude: can't open input file C:\Users\per\AppData\Roaming\Arduino15\packages\adafruit\hardware\avr\1.3.0/bootloaders/arduino:optiboot/optiboot_atmega328.hex: Invalid argument
You have to include your own copies of all these bootloaders.

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.