I want to compile a sketch into a single hex file and then use AVRDUDE to upload the compiled code to three different Arduino variants without the IDE.
The targets are:
Pro Mini 16MHz (with default boot loader)
Nano (with default boot loader)
Nano (with Opti-boot boot loader)
The hex file is compiled in the IDE using settings for the Arduino Nano, so I know programming space is not an issue since it will fit on the target with the least available (Opt-boot frees up at least an extra 1K vs. Nano/ProMini default boot loaders). All of the targets have the same ATMega328p clocked at the same 16MHz speed.
avrdude -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:mysketch.hex:i
So far the only thing I've noticed I have to do is change the baud rate for Nano/ProMini bootloader to be 57600, but other than that it seems to work fine.
My question: Is there any unexpected side-effect of doing this?