I have an Arduino serial single sided board with an Atmega8. I haven't used it in the last couple of months and decided to load something on it now. The bootloader upload works every time I try it(uploaded with the parallel programmer). The sketch does not work no matter what I do. I get the error
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I already checked the usual suspects and I can't find anything wrong.
Hold the shift key down when you press the upload button in the Arduino IDE. This will upload with verbose output. It will show you exactly what avrdude is doing, line by line in the black bar at the bottom of Arduino IDE. Post all that and maybe someone can spot the problem.
Well that is showing AVRDUDE trying to program your sketch using the serial bootloader on com1. If you want the arduino to upload sketches using a parallel programmer you have to modify the boards.txt file for the chip type you will be uploading to. As shipped the board.txt file sets all board types to use bootloader (serial) programming.
If your board is a serial board with a bootloader, why would you want to use a parallel programmer to upload sketches?
Hello,
First of all thank you for the replies!
It was a stupid mistake. I accidentally set the jumper JP0 in the position 1-2 instead of 2-3 last time I worked with it and the serial communication was not working.
@ retrolefty: When I saw that the serial connection was not working I decided to try with the parallel programmer and did not change the settings on preferences.txt.