Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Location of boards.txt in Arduino 2?

  1. #1

    Location of boards.txt in Arduino 2?

    Hey everyone,
    going by a suggestion in another thread to edit boards.txt to adjust the audio samplerate https://forum.pjrc.com/threads/38753...l=1#post322193,

    I've successfully done this in Arduino 1.8.13, but I recently installed Arduino 2.0.4 and there is no boards.txt anywhere in the installation folder. Anyone have advice on how I can make this change?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    16,868
    It can be found (on windows?) in: %appdata%\..\local\Arduino15\packages\teensy\hardw are\avr\0.58.3

    Where the last 'folder' is the installed version.

    ALSO: instead of modifying the boards.txt itself put the desired changed alone into: boards.local.txt

    That file is looked at after boards.txt and replacements or additions are made. The IDE should be closed before/after making the change as it is read on startup.

    Make a copy of the boards.local.txt after editing as moving to a new 'version' will create a new folder and not expected that file is migrated when the 'current' version is wiped out for the new.

  3. #3
    Quote Originally Posted by defragster View Post
    It can be found (on windows?) in: %appdata%\..\local\Arduino15\packages\teensy\hardw are\avr\0.58.3

    Where the last 'folder' is the installed version.

    ALSO: instead of modifying the boards.txt itself put the desired changed alone into: boards.local.txt

    That file is looked at after boards.txt and replacements or additions are made. The IDE should be closed before/after making the change as it is read on startup.

    Make a copy of the boards.local.txt after editing as moving to a new 'version' will create a new folder and not expected that file is migrated when the 'current' version is wiped out for the new.
    The only boards.txt on my harddrive (running linux) is in the old arduino-1.8.13 folder. Hmmm..

    Good tip on that boards.local.txt though, I wish there was a way to make boards.txt changes that were only per-project.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,656
    On Linux, it should be in ~/.arduino15/packages/teensy/hardware/avr/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •