Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Is it possible to change the build output path (hex file location) in Arduino IDE 2.0?

Go down  Message [Page 1 of 1]

diego_souza



Hello everyone,

With Arduino IDE 1.8 we are able to change the build output path (where the hex files will be located) using the preferences.txt file, like in this example:

build.path=C:\Arduino-Output\

This facilitates a lot when simulating circuits with SimulIDE.

I'm willing to move from IDE 1.8 to 2.0 for my classes, but as far as I understand, IDE 2.0 is not using the preferences.txt file anymore, but it uses the arduino-cli.yaml file.

However, I'm not aware of any parameter that I can easily specify where I want to store the hex files.

Do you have any idea?

Thanks!



diego_souza



Hi all,

Based on this thread, it is not possible to change the output build path with a configuration file in IDE v2.0 as it was in v1.8.

The closest we can do (based on this thread) is exporting the build files to a subfolder inside the sketch folder, by clicking at Sketch > Export Compiled Binary.

This is much better than having the hex in a random temp folder and solved my problem.

arcachofo likes this post

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum