Using Nick Gammon's excellent tutorial (http://www.gammon.com.au/forum/?id=11637
), I was able to burn a bootloader on an atmel328p chip. As in the tutorial, I tried to upload a couple of arduino sketches (printing ASCII table over the serial port, blinking LED) and they seemed to work fine.
Now, I am trying to upload a simple C program to blink an LED following this tutorial : http://www.micahcarrick.com/tutorials/avr-microcontroller-tutorial/getting-started.html
I am having trouble with avrdude when it tries to upload it to the chip. Here is the error I am getting :
Here are the commands I've used:
avr-gcc -mmcu=atmega328p -Wall -Os -o blink_try.elf blink_try.c
avr-objcopy -j .text -j .data -O ihex blink_try.elf blink_try.hex
avrdude -v -p m328p -c stk500 -P /dev/ttyUSB1 -e -U flash:w:blink_try.hex
I am not sure what's going on.