Problem burning bootloader to Atmega328

I am trying to use Arduino IDE 0015 to burn the bootloader to a brand new Atmega328 chip. I am using a USB Olimex ISP programmer.

Every time I try I get the following error message :-

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: successfully opened stk500v2 device -- please use -c stk500v2

avrdude: stk500_read_sig_bytes(): (a) protocol error, expect=0x14, resp=0x75
avrdude: error reading signature data for part "ATMEGA328P", rc=-2
avrdude: error reading signature data, rc=-1

Please help.

Which programmer did you choose in the menu?

Your Olimex ISP programmer uses the stk500v2 protocol, so you have to choose AVRISP mkII.

With a serial (original Atmel) stk500v2 I had some problems because the baud rate was wrong. I had to recompile the IDE for fixing this, because the uses the upload speed specified in the boards.txt file and my programmer doesn't like -b options with avrdude...

If I set it to AVRISP MKII I get this error :-

avrdude: usbdev_open(): did not find any USB device "usb"

I read the manual of your programmer and it seems as if the programmer gets a virtual com port.
So add this entry to the programmers.txt in the hardware folder: ISP 500 Olimex

and then select the right com port in the IDE and try to burn the bootloader

are you using mac os x or windows?

Fantastic!! :smiley:

Works a treat now. Thanks.

I'm using Windows as there are no Mac Drivers for the Olimex.

Thanks for your help.

At first, I had the same problem with my olimex isp, but then I did the modifications to the programmers.txt. Everything seemed fine, but when I hit the Burn Bootloader button in the Arduino IDE, it jams. It does nothing and stays and lags there forever. Now, I do know that burning the bootloader may take a while, but it is not showing any response whatsoever. And it just can't take more than hour can it! What should I do, can someone please help?

(I am also running on Windows)

Thanks. Andreasu