Arduino IDE 2.0.0 Board Package Modifications

I'm trying to add support for the STM32 Nucleo-H7A3ZI-Q board by modifying variant files and boards.txt but the released version of Arduino IDE 2.0.0 ignores the changes even if I uninstall and reinstall it. Older versions, 2.0.0-RC4 and 1.8.19, use the changes I make. Does the current version of the IDE ignore the contents of AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.3.0 and save the information somewhere else? Is there a way to support a variant of a board without generating an entire package?

Thanks.

Hi @robopixel. As you noticed, it can ignore changes made to the boards.txt file due to a bug:

I'll share the workaround:

  1. Select File > Quit from the Arduino IDE menus if it is running.

  2. Delete the "User data" folder:
    :warning: Please be very careful when deleting things from your computer. When in doubt, back up!

    • Windows:
      • C:\Users\<user name>\AppData\Roaming\arduino-ide\
        
    • Linux:
      • ~/.config/arduino-ide/
        
    • macOS:
      • ~/Library/Application Support/arduino-ide/
        
  3. Start the Arduino IDE.

The custom board options menus should now reflect any changes that were made to boards.txt.


The data the IDE stores in this folder is for convenience UI features (for example, remembering which sketches you had open when you last quit the IDE). You should not experience any serious impacts from deleting it.

I have the same problem with editing board.txt.
I'm using Arduino IDE 2.0.3 in Windows, and I don't have any User data in the folder
C:\Users<user name>\AppData\Roaming\arduino-ide
Has it been moved?

Hi @brha

No, it has not been moved.

I think there might be a misunderstanding. The "User Data" in my instructions is the term used to refer to the folder at this path:

C:\Users\<user name>\AppData\Roaming\arduino-ide\

I didn't mean to imply there is a folder named User Data under that path.

So just delete the folder named arduino-ide you find at this pathe:

C:\Users\<user name>\AppData\Roaming\arduino-ide\

(where <user name> is your Windows user name)


Please let me know if you have any questions or problems while following those instructions.

Thank you, that works

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.