After looking around for a while I noticed a lack of information describing the process of converting the text written into the IDE to the .hex file that gets uploaded. I’m attempting to create a Visual Basic program that will convert a text file of code to the arduino readable .hex file, then upload it.
So far I’ve got the uploading part working as intended, but I’m unsure how to convert the text file so it can be uploaded.
I’ve run the program (which also creates the code) and copied it to the IDE and uploaded it from there which works fine but I’m looking to make the process fully automatic.
Any insight into how to convert the text file to a .hex file that the arduino can read would be much appreciated.
File > Preferences > Show verbose output during: > compilation (check) > OK
Sketch > Verify/Compile
After the compilation finishes, examine the contents of the black console window at the bottom of the Arduino IDE window. There you will find all the commands the Arduino ran to compile the code
You can find a description of the process here:
If you prefer to still use the Arduino IDE then you will find the CLI reference useful: