fboggle
September 19, 2023, 2:17pm
1
I am attempting to add my own partition table to the 2.2.1 IDE. I can't rely upon partitions.csv because I build for multiple boards. For a UM TinyS3 the UI offers only two options.
I located boards.txt in (Windows) ~/AppData/Local/Arduino15/packates/esp32/hardware/esp32/2.0.12/boards.txt. I attempted to add my partition scheme by adding the following lines:
tinys3.menu.PartitionScheme.mypart=My Partition
tinys3.menu.PartitionScheme.mypart=mypart
tinys3.menu.PartitionScheme.mypart.upload.maximum_size=3342336
No joy. So, I deleted one of the entries (the one for TinyUF2 Compatibility. It doesn't disappear. I closed out the IDE. I rebooted the machine.
Any ideas how changes to this boards.txt file ever make their way into the UI?
Many thanks in advance.
Hi @fboggle . There is a bug in Arduino IDE 2.x that causes the changes to "custom board options" in boards.txt
to not be reflected in the IDE UI:
opened 05:00PM - 09 Jun 22 UTC
topic: code
type: imperfection
### 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:
- https://github.com/arduino/arduino-ide/issues/1258
- https://github.com/arduino/arduino-ide/issues/801#issuecomment-1196334934
- https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/issues/75#issuecomment-1273642230
- https://github.com/arduino/arduino-ide/issues/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
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds)
- [X] My report contains all necessary details
I'll provide instructions you can follow to force Arduino IDE to recognize the changes you made to boards.txt
:
Select File > Quit from the Arduino IDE menus if it is running.
Delete the folder at the following path:
Please be careful when deleting things from your computer. When in doubt, back up!~/AppData/Roaming/arduino-ide/
Start the Arduino IDE.
The custom board options menus should now reflect any changes that were made to boards.txt
.
The arduino-ide
folder is used by Arduino IDE to store data, but it doesn't store any irreplaceable data there so you won't notice any significant impacts from the deletion of the data.
Please let me know if you have any questions or problems while following those instructions.
fboggle
September 20, 2023, 1:21pm
3
Many thanks. This worked like a charm.
You are welcome. I'm glad it is working now.
Regards,
Per
system
Closed
March 18, 2024, 5:10pm
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.