Go Down

Topic: Problem burning bootloader to Atmega328 (Read 2258 times) previous topic - next topic

Mike Mc

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 AvrdudeUploader.java uses the upload speed specified in the boards.txt file and my programmer doesn't like -b options with avrdude...

Mike Mc

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

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


Mar 27, 2009, 02:27 pm Last Edit: Mar 27, 2009, 02:31 pm by bohne Reason: 1
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:

olimexisp.name=AVR 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?

Mike Mc

Fantastic!! :D

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

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131