I'm trying to upload a hex file to an Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328. I burned the bootloader from the arduino IDE and I can upload sketches no problem. However, I have a hex file and no idea how to upload it.
Currently I have the command:
avrdude -C "C:/Program Files (x86)/Arduino/hardware/tools/avr/etc/avrdude.conf" -p atmega328p -c stk500v1 -P \.\COM13 -b 19200 -U flash:w:PATH_TO_HEX_HERE:i -U lock:w:0x0F:m
I'm getting the error:
avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
So what's wrong with the command? Is stk500v1 the right programmer?