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

Boards with a board ID with a '/' can not be selected. #2742

Closed
3 tasks done
sterretjeToo opened this issue Nov 2, 2024 · 3 comments
Closed
3 tasks done

Boards with a board ID with a '/' can not be selected. #2742

sterretjeToo opened this issue Nov 2, 2024 · 3 comments
Assignees
Labels
type: imperfection Perceived defect in any part of project

Comments

@sterretjeToo
Copy link

Describe the problem

Preamble:
Posted here as I suspect that this is a problem with the CLI and not with the IDE.

Short:
Unable to select the HTCC-AB02A in the Cubecell Development Framework 1.5.0; see https://forum.arduino.cc/t/board-for-htcc-ab02a/1317566/
Root cause is a / in the board ID in boards.txt.

Long:
This problem was detected when a user installed CubeCell Development Framework using the boards manager in IDE 2.x and wanted to select the HTCC-AB02A board. I've confirmed the behaviour in both IDE 2.3.3 on Windows and IDE 1.8.19 on Windows.

If a different board was currently selected (e.g. Uno), the drop down (next to the debug button) in IDE 2.x does not reflect the change; neither does the status bar at the bottom. If no board was selected, the drop down shows "Select Board".

The issue was fixed by replacing all CubeCell-1/2AA board IDs by CubeCell-1-2AA. I only verified this for the IDE 2.3.3 installation on my system.

I did consult https://arduino.github.io/arduino-cli/0.34/platform-specification/#boardstxt to verifty whether there are any reserved characters and could not find it.

To reproduce

  1. Install the CubeCell Development Framework using the boards manager in IDE 2.x
  2. Select the board CubeCell-1/2AA Node(HTCC-AB02A.

Expected behavior

Be able to select the board. If the board can't be selected due to an error in boards.txt, an error message.

Arduino CLI version

Sorry, nightly build arduino-ide_nightly-20241101_Windows_64bit

Operating system

Windows

Operating system version

Win11 Home

Additional context

I've checked both https://github.com/arduino/arduino-cli and https://github.com/arduino/arduino-ide/issues and could not find a relevant issue.

The issue might be a bug in the CLI/IDE or a platform specification that is not 100% conclusive.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@sterretjeToo sterretjeToo added the type: imperfection Perceived defect in any part of project label Nov 2, 2024
@sterretjeToo
Copy link
Author

Note:
Original user is a Mac user so it also affects Mac users (and more than likely Linux Linux users).

@per1234 per1234 self-assigned this Nov 2, 2024
@per1234
Copy link
Contributor

per1234 commented Nov 2, 2024

Hi @sterretjeToo. Unfortunately an inappropriate location was chosen for the documentation of the allowed characters for the board ID so I'm not surprised you couldn't find it:

https://arduino.github.io/arduino-cli/dev/FAQ/#whats-the-fqbn-string

Each field accepts letters (A-Z or a-z), numbers (0-9), underscores (_), dashes(-) and dots(.)

So this is a bug in the "CubeCell Development Framework" boards platform and should be reported to their issue tracker:

https://github.com/HelTecAutomation/CubeCell-Arduino/issues

@sterretjeToo
Copy link
Author

Issue reported: HelTecAutomation/CubeCell-Arduino#291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants