Skip to content

Changes to custom board option definitions in boards.txt are not picked up #1030

Open
@KurtE

Description

@KurtE

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:

Issue checklist

  • I searched for previous reports in the issue tracker
    I verified the problem still occurs when using the latest nightly build
    My report contains all necessary details

Activity

self-assigned this
on Jun 9, 2022
per1234

per1234 commented on Jun 10, 2022

@per1234
Contributor

Thanks for the report @KurtE. This caching issue also affects the Tools > Programmer menu contents: #591

I'll share the workaround:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Delete the "User data" folder:
    • 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.

KurtE

KurtE commented on Jun 10, 2022

@KurtE
Author

@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

MrSniffer commented on Oct 10, 2022

@MrSniffer
joostbijl

joostbijl commented on Nov 2, 2022

@joostbijl
sevelm

sevelm commented on Jan 19, 2023

@sevelm
per1234

per1234 commented on Jan 20, 2023

@per1234
Jackfritt

Jackfritt commented on Feb 19, 2023

@Jackfritt
fpistm

fpistm commented on Mar 28, 2023

@fpistm
puzirev

puzirev commented on Apr 8, 2023

@puzirev

Same issue when adding new board type in stm32duino on 2.0.4. Deleting "User data" folder helps.

KurtE

KurtE commented on May 10, 2023

@KurtE
Author
efirmata

efirmata commented on Jul 4, 2023

@efirmata
KurtE

KurtE commented on Jul 31, 2023

@KurtE
Author
locked as too heated and limited conversation to collaborators on Aug 1, 2023
removed their assignment
on Feb 23, 2024
changed the title [-]changes to boards.txt are not picked up[/-] [+]Changes to custom board option definitions in `boards.txt` are not picked up[/+] on May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kittaakos@KurtE@sevelm@per1234@MrSniffer

        Issue actions

          Changes to custom board option definitions in `boards.txt` are not picked up · Issue #1030 · arduino/arduino-ide