-
Notifications
You must be signed in to change notification settings - Fork 49
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
Teensy LC builds much larger using PlatformIO than Arduino IDE #43
Comments
I knew as soon as I posted a bug I would get some traction in my brain :) I did a little research and discovered two things:
I opened up the board file and explicitly added Before:
After:
Is there a way without editing the board framework definition to explicitly change the linker flags? |
OK, after digging into the docs again I think Advanced Scripting will fit my need. I'll leave it to the team whether adding this option by default wants to be explored or not. Thanks. |
@PaulStoffregen what is default build mode for Teensyduino? Does it use |
It's changed many times. I'm not even sure right now, without looking... Easiest way to look with Arduino IDE, using File > Preferences "show verbose info" while compiling, and then click Verify. |
Boards.txtThe default mode is "Faster", which does not use
|
I've just released a new version 3.7.1 which allows to control firmware optimization => https://github.com/platformio/platform-teensy/releases/tag/v3.7.1
|
Those are the defaults for Teensy 3.6. Teensy LC has similar settings, but the default is different (due to its small memory). |
Tried this out, works great. Thanks for the fast turnaround 👍 |
Hello,
I am experiencing an issue where builds for Teensy LC in PlatformIO are much larger than builds done in the Arduino IDE itself.
Some examples:
An empty sketch (default starting point for both Arduino and PlatformIO):
Arduino:
PlatformIO:
Bare program which loops and outputs "hello world" on Serial:
Arduino:
PlatformIO:
Program using the Teensy ADC library which reads and then prints a value:
Arduino:
PlatformIO:
I am using the "Smallest Code" preset in the Arduino IDE, which per the board definition sets the following flags:
Looking at the build output from PlatformIO, it seems like most if not all of these flags are being set (I'm still trying to compare build outputs). The one I noticed missing was
--specs=nano.specs
; I tried setting that in the build_flags environment setting to no avail.The text was updated successfully, but these errors were encountered: