Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance "board details" command #674

Merged
merged 17 commits into from Apr 24, 2020
Merged

Enhance "board details" command #674

merged 17 commits into from Apr 24, 2020

Conversation

rsora
Copy link
Contributor

@rsora rsora commented Apr 24, 2020

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • The PR follows our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce?

The PR adds plenty of additional board related details to the command board details.
Most notably additions are:

  • Identification details for the board (i.e. VID and PID)
  • Related package and platform information (with URLs)
  • Detailed tools dependencies information with URLs and checksums
  • Additional flag --full that enables printing of all tool details in case of Text output
  • What is the current behavior?

arduino-cli board details arduino:samd:nano_33_iot --format json returns:

{
  "name": "Arduino NANO 33 IoT",
  "required_tools": [
    {
      "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",
      "packager": "arduino"
    },
    {
      "name": "CMSIS",
      "version": "4.5.0",
      "packager": "arduino"
    },
    {
      "name": "CMSIS-Atmel",
      "version": "1.2.0",
      "packager": "arduino"
    },
    {
      "name": "arduinoOTA",
      "version": "1.2.1",
      "packager": "arduino"
    }
  ]
}

  • What is the new behavior?

now arduino-cli board details arduino:samd:nano_33_iot --format json returns:

{
  "fqbn": "arduino:samd:nano_33_iot",
  "name": "Arduino NANO 33 IoT",
  "version": "1.8.6",
  "propertiesId": "nano_33_iot",
  "official": true,
  "package": {
    "maintainer": "Arduino",
    "url": "https://downloads.arduino.cc/packages/package_index.json",
    "websiteURL": "http://www.arduino.cc/",
    "email": "packages@arduino.cc",
    "name": "arduino",
    "help": {
      "online": "http://www.arduino.cc/en/Reference/HomePage"
    }
  },
  "platform": {
    "architecture": "samd",
    "category": "Arduino",
    "url": "http://downloads.arduino.cc/cores/samd-1.8.6.tar.bz2",
    "archiveFileName": "samd-1.8.6.tar.bz2",
    "checksum": "SHA-256:68a4fffa6fe6aa7886aab2e69dff7d3f94c02935bbbeb42de37f692d7daf823b",
    "size": 2980953,
    "name": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)"
  },
  "toolsDependencies": [
    {
      "packager": "arduino",
      "name": "arm-none-eabi-gcc",
      "version": "7-2017q4",
      "systems": [
        {
          "checksum": "SHA-256:34180943d95f759c66444a40b032f7dd9159a562670fc334f049567de140c51b",
          "host": "arm-linux-gnueabihf",
          "archiveFileName": "gcc-arm-none-eabi-7-2019-q4-major-linuxarm.tar.bz2",
          "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2019-q4-major-linuxarm.tar.bz2",
          "size": 96613739
        },
        {
          "checksum": "SHA-256:6fb5752fb4d11012bd0a1ceb93a19d0641ff7cf29d289b3e6b86b99768e66f76",
          "host": "aarch64-linux-gnu",
          "archiveFileName": "gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2",
          "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2",
          "size": 99558726
        }
        .....
      ]
    },
    {
      "packager": "arduino",
      "name": "bossac",
      "version": "1.7.0-arduino3",
      "systems": [
        {
          "checksum": "SHA-256:62745cc5a98c26949ec9041ef20420643c561ec43e99dae659debf44e6836526",
          "host": "i686-mingw32",
          "archiveFileName": "bossac-1.7.0-arduino3-windows.tar.gz",
          "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-windows.tar.gz",
          "size": 3607421
        },
       
       ........
  ],
  "identification_pref": [
    {
      "usbID": {
        "VID": "0x2341",
        "PID": "0x8057"
      }
    },
    {
      "usbID": {
        "VID": "0x2341",
        "PID": "0x0057"
      }
    }
  ]
}

  • Does this PR introduce a breaking change?

Not really, it gives additional information

  • Other information:

See how to contribute

@rsora rsora added this to the 0.11.0 milestone Apr 24, 2020
@rsora rsora marked this pull request as ready for review April 24, 2020 13:28
@rsora rsora requested a review from cmaglie April 24, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants