Ino to Hex Compile w/o going thru the IDE

was searching a way of having a Direct firmware upload to an Arduino / Teensy Project but yet to find a efficient way of doing this

can anyone recommend on ways of converting Ino to Hex and compiling to the Arduino board or Teensy board complete with its libraries without using the IDE .

or is anyone knowledgeable in software dev I can chat to .

and if its possible that can be done on visual studio or Shell .bat

thanks

Just save the hex file produced by the compiler and upload it using avrdude.

If you enable verbose mode for compiling and uploading, you'll see all the commands that are invoked by the IDE. Type the same commands in a command window, and you'll get the exact same result.

use Arduino CLI or run IDE without GUI (example)

frewon9:
can anyone recommend on ways of converting Ino to Hex and compiling to the Arduino board or Teensy board complete with its libraries without using the IDE .

You can use the IDE to compile and upload programs from the command line. Would that meet your need?

...R

Juraj:
use Arduino CLI or run IDE without GUI (example)

hi Jura dos it also work with libraries.? like include.h since some sketch require libraries to work

frewon9:
hi Jura dos it also work with libraries.? like include.h since some sketch require libraries to work

of course

plan to run a teensyduino in it so it can be tricky

frewon9:
plan to run a teensyduino in it so it can be tricky

the command line use of IDE is still the same IDE. what it can compile with GUI it ca do without GUI.

I didn’t try the new CLI.

frewon9:
plan to run a teensyduino in it so it can be tricky

I don't have any experience of teensies but I have had no trouble using the command line to compile and upload programs to Attiny boards and ESP8266 modules.

...R