Answer the question
In order to leave comments, you need to log in
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
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"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question