-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Large Teensy 3.1 project build broken with large const data, works when built with Arduino/Teensyduino #626
Comments
Hi @blackketter ! |
Thanks, @valeros! To make things easier, I pushed the project to github: https://github.com/blackketter/britepad.git Use the platformio-broken branch to build with the large data structure, "keyConfig" in src/apps/CalculatorApp.cpp The master branch has this file removed from the build, for now. Let me know if there's anything I can do to help. |
Could you please try in turn these two variants:
|
Aha! -O seems to fix the issue, though I'm not sure what other side effects there might be. It did increase the firmware size from 195032 to 212096. |
Hi @blackketter! Any news about your problem? Did |
Sorry, I wasn't clear. -O did fix the problem. It also increased the firmware image size, but that's the only side effect I noticed. Looking back at the regular Arduino/Teensyduino build output, it did use -O as the optimization level, so I think this is the correct solution and should probably be the default optimization level. |
Could we close this issue? |
Configuration
Operating system:
MacOS X 10.11.4
Arduino 1.6.8, Teensyduino 1.28
PlatformIO Version (
platformio --version
):2.8.6
Description of problem
Large Teensy project builds but does not run correctly (some errors with i2c, etc.) when a largish constant data structure gets too big.
Builds and runs correctly under Arduino/Teensyduino
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
It's a large project. The problem goes away when I reduce the size of one large const data structure from about 6k to 2k. Happy to provide the full source if necessary.
Attached are the elf files and build logs for arduino and platformio
Additional info
arduino.buildresults.txt
firmware.elfs.zip
platformio.buildresults.txt
The text was updated successfully, but these errors were encountered: