Description
Describe the problem
I install in this case support for Teensy boards.
I verify that it works and notice some of the options were not enabled in boards.txt.
So I go and edit the boards.txt to enable it. So I then restart the IDE and my changes are not reflected in menu.
To reproduce
Install support for Teensy:
:update preferences with: https://www.pjrc.com/teensy/td_156/package_teensy_index.json
Install the boards, and then for example Choose Teensy 3.2 / 3.1
Look at the CPU speed menu item and see that 144mhz is not in the list.
Go edit the boards.txt file:
...
#uncomment these if you want to try faster overclocking
#teensy31.menu.speed.144=144 MHz (overclock)
#teensy31.menu.speed.168=168 MHz (overclock)
...
And lets say uncomment the 144 Mhz line.
And save the changes
restart the IDE and then look at the CPU speeds for and the new item is not in the list.
Expected behavior
I would expect in this case the 144 mhz cpu speed to show up, like it does in Arduino 1.x
I am assuming you are caching the data out of the different tools.txt files and as such not being seen. Maybe the cache code need to remember modification dates or the like.
Alternatively need some mechanism to tell the IDE to refresh it's cache.
Arduino IDE version
RC7 which was released today
Operating system
Windows
Operating system version
Windows 10
Additional context
Note: I first noticed this when I was trying to update @PaulStoffregen package for TD1.56 to use the stuff from 1.57 Beta 2, so I was updating the boards.txt to have an additional USB type for T4.x and soon T3.x
But used the CPU speed example as it is easier to reproduce.
I have not yet checked to see if you pickup changes or the creation of the local.boards.txt file or not
Edit: I tried adding the line for 144mhz to local.boards.txt and restarted the IDE and it still was not seen
Additional reports:
- Tools->Board part number menu does not change #1258
- Custom board options menu items not in order specified by boards.txt #801 (comment)
- SX1262 version of TBEAM V1.1? Xinyuan-LilyGO/LilyGo-LoRa-Series#75 (comment)
- Changing board does not update partition scheme selection #1751
- https://forum.arduino.cc/t/partition-scheme-ide-2-0-x/1065762
- https://forum.arduino.cc/t/manual-edits-to-boards-txt-not-picked-up/1045377
- https://forum.arduino.cc/t/arduino-ide-2-0-0-board-package-modifications/1035933
- https://forum.arduino.cc/t/libraries-included-with-board-dont-show-up-as-expected/1032334/5
- https://forum.arduino.cc/t/modifying-board-manager/1065046
- https://forum.arduino.cc/t/adding-a-partition-table-to-arduino-2-0-ide/1170025
- https://forum.arduino.cc/t/esp32-d0wd-v3-board-azdelivery-esp32-dev-kit-c-v4/1255674
- https://forum.arduino.cc/t/upload-speed-menu-has-no-entry-for-74880/1285826/4
- https://forum.arduino.cc/t/issue-with-boards-txt-working-in-arduino-ide-1-x-but-not-in-2-x/1314293
- https://www.reddit.com/r/esp32/comments/1gnlp9h/esp32s3_partition_tables_and_optimizing_memory/?rdt=43645
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the latest nightly buildMy report contains all necessary details
Activity
per1234 commentedon Jun 10, 2022
Thanks for the report @KurtE. This caching issue also affects the Tools > Programmer menu contents: #591
I'll share the workaround:
The custom board options menus should now reflect any changes that were made to
boards.txt
.KurtE commentedon Jun 10, 2022
@per1234 Thanks, that helps.
I remember from before there was some location to delete.
This time, so far it does not look like deleting this data caused the IDE to download all of the standard libraries again and wipe out one that was already there. (#798)
Thanks again
MrSniffer commentedon Oct 10, 2022
joostbijl commentedon Nov 2, 2022
sevelm commentedon Jan 19, 2023
per1234 commentedon Jan 20, 2023
Jackfritt commentedon Feb 19, 2023
fpistm commentedon Mar 28, 2023
puzirev commentedon Apr 8, 2023
Same issue when adding new board type in stm32duino on 2.0.4. Deleting "User data" folder helps.
KurtE commentedon May 10, 2023
efirmata commentedon Jul 4, 2023
KurtE commentedon Jul 31, 2023
[-]changes to boards.txt are not picked up[/-][+]Changes to custom board option definitions in `boards.txt` are not picked up[/+]