Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
KurtE opened this issue Jun 9, 2022 · 12 comments
Open
3 tasks done
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@KurtE
Copy link

KurtE commented Jun 9, 2022

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
@KurtE KurtE added the type: imperfection Perceived defect in any part of project label Jun 9, 2022
@kittaakos kittaakos self-assigned this Jun 9, 2022
@kittaakos kittaakos added the topic: code Related to content of the project itself label Jun 9, 2022
@per1234
Copy link
Contributor

per1234 commented Jun 10, 2022

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
Copy link
Author

KurtE commented Jun 10, 2022

@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

This comment was marked as off-topic.

@joostbijl

This comment was marked as off-topic.

@sevelm

This comment was marked as off-topic.

@per1234

This comment was marked as off-topic.

@Jackfritt

This comment was marked as off-topic.

@fpistm

This comment was marked as off-topic.

@puzirev
Copy link

puzirev commented Apr 8, 2023

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

@KurtE

This comment was marked as off-topic.

@efirmata

This comment was marked as off-topic.

@KurtE

This comment was marked as off-topic.

@arduino arduino locked as too heated and limited conversation to collaborators Aug 1, 2023
@kittaakos kittaakos removed their assignment Feb 23, 2024
@per1234 per1234 changed the title changes to boards.txt are not picked up Changes to custom board option definitions in boards.txt are not picked up May 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

10 participants