Adding a Partition Table to Arduino 2.0 IDE

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:

I'll provide instructions you can follow to force Arduino IDE to recognize the changes you made to boards.txt:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Delete the folder at the following path:
    :warning: Please be careful when deleting things from your computer. When in doubt, back up!
    ~/AppData/Roaming/arduino-ide/
    
  3. 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.

Many thanks. This worked like a charm.

You are welcome. I'm glad it is working now.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.