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

1.6.3 - platform.txt avrdude Custom Config Issue #2886

Closed
toddtreece opened this issue Apr 2, 2015 · 7 comments
Closed

1.6.3 - platform.txt avrdude Custom Config Issue #2886

toddtreece opened this issue Apr 2, 2015 · 7 comments
Assignees
Labels
arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug

Comments

@toddtreece
Copy link

I can't seem to change the tools.avrdude.config.path in the platform.txt file for custom boards. Is this something I should be able to override? I am able to change other settings like compiler.path, but the avrdude settings don't seem to respond to changes. Here's what I see with verbose output turned on even if I set tools.avrdude.config.path=/Users/todd/avrdude.conf:

-C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
@agdl agdl closed this as completed Apr 3, 2015
@agdl agdl reopened this Apr 3, 2015
@agdl
Copy link
Member

agdl commented Apr 3, 2015

sorry wrong click on it

@clefranc
Copy link

clefranc commented Apr 5, 2015

Sorry if this not the right place to ask, but my issue seems related. Can't change the optimization compiler.c.flags from -Os to -O3 in platform.txt for AVR, ie when compiling still shoes -Os. Was correct with 1.6.2.

@clefranc
Copy link

clefranc commented Apr 7, 2015

So, is this a bug or a new functionality?

@cmaglie
Copy link
Member

cmaglie commented Jul 3, 2015

Hi @clefranc

you can change any platform variable in your custom platform.txt or boards.txt (and override the "default" value in the referred core).

With the latest IDE the compiler.path variable is defined in platform.txt as:

compiler.path={runtime.tools.avr-gcc.path}/bin/

you should be able to change to anything else that works for you.

@cmaglie cmaglie added Waiting for feedback More information must be provided before we can proceed Component: Compilation Related to compilation of Arduino sketches labels Jul 3, 2015
@clefranc
Copy link

clefranc commented Jul 3, 2015

@cmaglie Hi Cristian, thank you for your interest in the resolution of this issue.

Like I said in my previous comment, when I change compiler.c.flags in platform.txt from -Os to -O3, it is ignored when compiling. In fact, I'm setting compiler.c.elf.flags and compiler.cpp.flags to -O3 as well. The result is still compiled with the -Os optimization option.

Prior to 1.6.3, the optimization option was compiling correctly to my -O3 setting. Something was introduced in 1.6.3 that affect platform.txt and that I can't understand:

ARDUINO 1.6.3 - 2015.04.02

[ide]
* Fixed an ArchiveExtractor issue when dealing with native stuff, affecting some linuxes
* MacOSX: MACOSX_BUNDLED_JVM property is automatically set to JAVA_HOME if not provided
* New splashscreen image
* New editor theme
* MacOSX and Windows: https links were not working, fixed

[core]
* Upgraded toolchains: statically compiled, ship with Link Time Optimization plugin (disabled by default)
* Restored backward compatibility by providing a platform.txt in-memory rewrite: old values (eg: compiler.path) are converted to new values
* platform.txt rewriting can be disabled if target platform has a "rewriting=disabled" key/value pair set
* AVR bundle files (core files and toolchain) is again inside IDE "hardware" folder, instead of unpacked into user's home folder at first IDE startup
* Advise of duplicate libraries after compiling. Thanks @PaulStoffregen

All I want is output compiled code with modified optimization option, I can't find a way to do that with 1.6.3 and above.

@ffissore ffissore removed the Waiting for feedback More information must be provided before we can proceed label Aug 5, 2015
@matthijskooijman
Copy link
Collaborator

@toddtreece, @clefranc, I came across this old issue. A lot has changed in the arduino building landscape since it was reported, so I wonder if this is still a problem. Could you make try with a recent version and report back here? If this has been solved already, I'd like to close this issue (and if not, maybe figure out what the problem is exactly).

@per1234 per1234 added arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool Type: Bug labels Oct 8, 2020
@per1234
Copy link
Collaborator

per1234 commented Mar 28, 2021

Closing due to lack of response.

@toddtreece @clefranc if you'll provide the feedback Matthijs requested I'll be happy to re-open this issue.

@per1234 per1234 closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug
Projects
None yet
Development

No branches or pull requests

7 participants