IDE2.0 Debugger

Hi,

I need access to the ,elf file generated by the IDE. I know this is in:

C:\Users\MBEACH~1.HIT\AppData\Local\Temp\arduino-sketch-9DE40D0778A939CDAB1BCBE0031DBA8A/sketch_dec21a.ino.elf

but that is really hard to access from an external debugger. Can I force the IDE to put the project in a directory of my choosing?

I doubt that the debugger for the Aurix-based arduinos could be integrated into the IDE 2.0 without a huge amount of effort!

Thanks

If you use Sketch > Export Compiled Binary in the Arduino IDE to compile the sketch, the .elf file will be saved to the build/<board identifier> subfolder of the sketch, where <board identifier> is the FQBN (fully qualified board name) of the board you are compiling for, with the : separators replaced by .

For example, if I compiled a sketch named "MySketch" for the Arduino Uno board (FQBN is arduino:avr:uno), then the compilation output will be at MySketch/build/arduino.avr.uno.


Another option is to use Arduino CLI instead of the Arduino IDE for generating the .elf file. The arduino-cli compile --output-dir flag allows you to specify the compilation output path.


Another option is to modify the Arduino boards platform that adds support to the IDE for the Aurix-based boards. You can customize how the build process works in the platform.txt configuration file. You might find pre/post build hooks especially useful for this purpose.

In order to facilitate porting your modifications through updates to new versions of the Aurix boards platform, you can place them in the platfom.local.txt configuration file rather than in platform.txt.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.