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.local.txt file ignored #1563

Open
K7MDL2 opened this issue Jan 3, 2023 · 1 comment
Open

boards.local.txt file ignored #1563

K7MDL2 opened this issue Jan 3, 2023 · 1 comment

Comments

@K7MDL2
Copy link

K7MDL2 commented Jan 3, 2023

This is something to look at for Arduino IDE 2.0 support.
USB types are defined boards.txt along with many other parameters. Boards.txt are supplied in the board packages. Boards.local.txt provides a way to add or override boards.txt entries without changing the distributed version per the Arduino specs.
https://arduino.github.io/arduino-cli/0.29/platform-specification/#boardslocaltxt

As of today, only boards.txt is processed, boards.local.txt is ignored. Arduino 2.0 IDE handles the .local.txt file properly assuming you clear the cached info.

For example, if I add my 3 lines of custom USB Type serial entries from boards.local.txt to boards.txt, the VS Code board manager USB Type menu will show and use the new USB type.

teensy41.menu.usb.serialserialaudio=Serial + Serial + Audio
teensy41.menu.usb.serialserialaudio.build.usbtype=USB_SERIAL_SERIAL_AUDIO
teensy41.menu.usb.serialserialaudio.upload_port.usbtype=USB_SERIAL_SERIAL_AUDIO

Adding these 3 lines will result in the Serial + Serial +Audio USB type to appear in the USB Type menu. Of course, to use it you must have matching section in usb_desc.h file, but that part is out of scope here.

The same local.txt file feature exists for some other config files like platform.txt.

@github-actions github-actions bot added the triage New issues that have not been reviewed. label Jan 3, 2023
@K7MDL2
Copy link
Author

K7MDL2 commented Oct 18, 2023

Verified this is still an issue with Arduino extension v0.6.230727001.

Arduino IDE 2.21, TeensyDuino 0.59.3 read the boards.local.txt file correctly.

@gcampbell-msft gcampbell-msft removed the triage New issues that have not been reviewed. label Dec 1, 2023
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

No branches or pull requests

2 participants