Pages: [1]   Go Down
Author Topic: Problem burning bootloader to Atmega328  (Read 1531 times)
0 Members and 1 Guest are viewing this topic.
London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
God Member
*****
Karma: 1
Posts: 588
LumiNet rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which programmer did you choose in the menu?
AVR ISP or  AVRISP mkII ?

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...
Logged


London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


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

0
Offline Offline
God Member
*****
Karma: 1
Posts: 588
LumiNet rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
olimexisp.communication=serial
olimexisp.protocol=stk500v2

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

are you using mac os x or windows?
« Last Edit: March 27, 2009, 08:31:24 am by bohne » Logged


London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Fantastic!! smiley-grin

Works a treat now. Thanks.

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

Thanks for your help.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: