My changes to board.txt are not applied.
This is a known problem, but the posted workaround is not working for me (i.e., delete arduino-ide).
I've spent 2 days investigating, and can't get the work-around to work, nor any other solution.
I'm using a 3rd party board package (from Espressiff), and I am wondering if the package might be in error? Or, I'm doing the workaround incorrectly? Or, the latest Arduino IDE broke the workaround?
More info is below.
Any help is greatly appreciated.
Jim
---- more info:
I'm using the Arduino IDE (v 2.3.6) and CLI (v1.2.0)
Also, I'm using an ESP32 board package from Espressif.
For the board package, I'm using v2.0.13, and FQBN esp32:esp32:esp32s3.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
I've tried the simplest change to boards.txt. I changed this property from 0 to 1:
esp32s3.build.cdc_on_boot=1
In the IDE, in File : Tools, the default value (0) results in:
USB CDC on Boot: "Disabled"
A value of 1 should result in:
USB CDC on Boot: "Enabled"
The workaround appears in several posts (the same workaround):
https://forum.arduino.cc/t/changes-to-boards-txt-or-platform-txt-not-picked-up-until/1130913
https://forum.arduino.cc/t/issue-with-boards-txt-working-in-arduino-ide-1-x-but-not-in-2-x/1314293
https://forum.arduino.cc/t/manual-edits-to-boards-txt-not-picked-up/1045377
I used the workaround:
-
Closed Arduino IDE
-
Modified boards.txt
At C:\Users<user>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13 -
Deleted C:\Users\AppData\Roaming\arduino-ide\
-
Opened IDE
-
Created a new sketch and used board package: ESP32S3 Dev Module.
-
In File : Tools, the new boards.txt was not applied. That is:
"USB CDC on Boot" is still "Disabled"
Also, in the CLI, this command shows the modified boards.txt is not being used:
"arduino-cli compile --show-properties"


