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

Thread: Small issue with boards.txt

  1. #1
    Junior Member
    Join Date
    Dec 2017
    Posts
    3

    Small issue with boards.txt

    I'm using Makefiles rather than the Arduino IDE from https://github.com/sudar/Arduino-Makefile and it supports Teensy nicely except for a small problem. It reads the boards.txt file for a few items and when it grabs F_CPU it looks for the highest frequency. Current your boards.txt has defines entries for teensy31 CPU clock frequency that aren't really supported and don't work. In boards.txt, the configuration items for the menu in the IDE are commented out but the F_CPU items aren't.

    teensy31.menu.speed.2=2 MHz (No USB)
    teensy31.menu.speed.120=120 MHz (overclock)
    #uncomment these if you want to try faster overclocking
    #teensy31.menu.speed.144=144 MHz (overclock)
    #teensy31.menu.speed.168=168 MHz (overclock)
    teensy31.menu.speed.168.build.fcpu=168000000
    teensy31.menu.speed.144.build.fcpu=144000000
    teensy31.menu.speed.120.build.fcpu=120000000

    teensy31.menu.speed.96.build.fcpu=96000000
    teensy31.menu.speed.72.build.fcpu=72000000

    While I'm not sure how many people use makefile builds, it probably would be nice for this to work out of box. Is there any chance you can comment out the higher speed?

    Also, what has your experience been running at 120MHZ on the MK20DX256?

    Thanks much,
    George

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,344
    Quote Originally Posted by gdhamp View Post
    Is there any chance you can comment out the higher speed?
    The higher speeds are commented out:

    Code:
    #uncomment these if you want to try faster overclocking
    #teensy31.menu.speed.144=144 MHz (overclock)
    #teensy31.menu.speed.168=168 MHz (overclock)
    Your makefile / script is reading the wrong lines.

Posting Permissions

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