I have an external device using an ATmega328, not a ATmega328-P as used by the Arduino Uno.
Now I want to use AVRDUDE and an Arduino Uno to flash a hex file on this chip. Therefore I removed the ATmega that came with the Arduino and popped in the one without the "-P".
With the Arduino IDE, it doesn't work, so I tried AVRDUDE:
avrdude -c arduino -P com3 -p ATMEGA328 -b 19200 -U flash:r:sdint.hex:r
However, I'm doing something wrong here, because it does not work:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
...
What commandline should I use to flash an Arduino Uno with an ATmega328?