N
N
NikitoZ Sc.2015-05-30 13:29:31
Arduino
NikitoZ Sc., 2015-05-30 13:29:31

Upload hex from Arduino IDE. How?

How can I "ask" the Arduino IDE to make a copy of the hex file to the left folder when compiling a sketch?
In the \hardware\arduino\avr folder, I found the platform.txt file, where the compiler and linker options are specified, but I did not find where to put a line like 'cp {build.path}/{build.project_name}.hex /where_I need_me/flash. hex'.
Maybe someone can tell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NikitoZ Sc., 2015-05-30
@Niki-Z

Everything, I found a solution :)
In the same file, you can change the line for calculating the file size. At this point hex is ready.

## Compute size
recipe.size.pattern="C:\Windows\System32\cmd" /c copy "{build.path}\{build.project_name}.hex" "E:\firmware.hex" && "{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"

And now, when you click "Check", the firmware is unloaded by itself, where you need it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question