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

Docs: Update the Platform specification's "Hardware Folders structure" #2753

Open
3 tasks done
thernstig opened this issue Nov 12, 2024 · 1 comment · May be fixed by #2760
Open
3 tasks done

Docs: Update the Platform specification's "Hardware Folders structure" #2753

thernstig opened this issue Nov 12, 2024 · 1 comment · May be fixed by #2760
Assignees
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement

Comments

@thernstig
Copy link

thernstig commented Nov 12, 2024

Describe the request

https://arduino.github.io/arduino-cli/1.1/platform-specification/ describes the platform specification. https://arduino.github.io/arduino-cli/1.1/platform-specification/#hardware-folders-structure describes its folder structure.

This folder structure does not correlate with what is seen when installing a specific platform via the board manager on Windows 11 in the Arduino IDE.

I wish for the documentation to be updated to be correct for how it looks in a installation on Windows

Describe the current behavior

I asked Perplexity why I saw this difference between my installation and what the platform specification said, and got a pretty sold answer I believe.

My question

The Arduino platform specification says the directories look like:

hardware/arduino/avr/...     - Arduino - AVR Boards
hardware/arduino/sam/...     - Arduino - SAM (32bit ARM) Boards
hardware/yyyyy/avr/...       - Yyy - AVR
hardware/xxxxx/avr/...       - Xxx - AVR

But when I check in explorer in Windows 11, it looks like:

packages\arduino\hardware\avr\1.8.6\cores\arduino

I don't understand why.

The answer

Image

Arduino CLI version

1.1.0

Operating system

Windows

Operating system version

11

Additional context

The entire nomenclature around Arduino "platform" and "core" is confusing. There are numerous Stack Overflow, forum and what not questions out there about this. For example even this repo has this issue #549.

Seeing this folder structure difference completely adds to this confusion.

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details
@thernstig thernstig added the type: enhancement Proposed improvement label Nov 12, 2024
@per1234 per1234 added the topic: documentation Related to documentation for the project label Nov 13, 2024
@cmaglie cmaglie linked a pull request Nov 21, 2024 that will close this issue
6 tasks
@cmaglie
Copy link
Member

cmaglie commented Nov 21, 2024

Hi @thernstig, thanks for pointing out the lack of clarity in the documentation.

I think the confusion comes from the documentation referring to the hardware sub-directory of the user-directory (AKA Sketchbook), which is supposed to be used by the user to install platforms manually without using the Board Manager.

Instead, if the platform is installed automatically with the Board Manager it will be installed in another directory as you discovered, that is supposed to be exclusively managed by the Board Manager.

I have updated the documentation in #2760 to clarify this aspect better. Let me know if this looks improved.

@cmaglie cmaglie self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants