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

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

    Issue actions