Welcome! Log In Create A New Profile

Advanced

Error burning bootloader atmega1280 & 644P

Posted by fteo88 
Error burning bootloader atmega1280 & 644P
September 15, 2011 11:28PM
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

triple check wiring. only 1st led lights up.

help
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 10:43AM
What is your setup? (I'm assuming you have the Arduino MEGA as an ISP and are programming a blank sanguinololu?)

Are you running in Windows/Linux/Mac? Can you see your boards in your device manager?

Are you running in the terminal or are you running the Arduino GUI?

Can you load sketches into the MEGA? Is it set to ArduinoISP?


Take some pictures of your boards if you can with the connections you have.

Read my post from the other day

Edited 1 time(s). Last edit at 09/16/2011 11:01AM by marnargulus.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 11:15AM
> What is your setup? (I'm assuming you have the
> Arduino MEGA as an ISP and are programming a blank
> sanguinololu?)
yes per wiki. for SL1.2 &1.3a

> Are you running in Windows/Linux/Mac? Can you see
> your boards in your device manager?
win 7 64bit & com8

> Are you running in the terminal or are you running
> the Arduino GUI?
022

> Can you load sketches into the MEGA?
sketches loaded fine to atmega clone 1280

> Is it set to ArduinoISP?
yes burn w Arduino as ISP

> Take some pictures of your boards if you can with
> the connections you have.
will do asap

> Read my post from the other day
yes
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 12:07PM
Try loading into 32bit mode, as I believe that the Arduino IDE has trouble in 64bit mode. At the very least try out the 32 bit java JRE. Make sure the FTDI drivers are installed for the USB to serial converter. It will be under COMS and Ports in device manager.

Edited 1 time(s). Last edit at 09/16/2011 12:09PM by marnargulus.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 12:12PM
FTDI Drivers
[www.ftdichip.com]
or
[www.ftdichip.com]

I think the link you want is
[www.ftdichip.com]

I'll keep helping where I can, but I use Ubuntu, so I can't check these things for you.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 12:12PM
OK, here are the photos

Pin 1 of the 644P starts at 11 on the breadboard. Only GND is used on -ve side of breadboard. Resonator * is facing center (right side).

Thank you for reviewing this.
Attachments:
open | download - DSC00672.JPG (250.4 KB)
open | download - DSC00673.JPG (581.8 KB)
open | download - DSC00674.JPG (394.1 KB)
open | download - DSC00675.JPG (507.5 KB)
open | download - DSC00676.JPG (494.9 KB)
open | download - DSC00677.JPG (471.2 KB)
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 12:26PM
Just at a glance I can see 9 wires from the board to the breadboard, should be 6 according to the arduino guide.

[arduino.cc]
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 12:33PM
Nevermind this is the older Mega, but is it a clone?

Edited 1 time(s). Last edit at 09/16/2011 12:37PM by marnargulus.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 12:49PM
644P Pins
6 - MOSI.
7 - MISO.
8 - SCK.
9 - Reset.
10 - VCC.
11 - GND.
12 - XTAL1.
13 - XTAL2.
14 - RXD (read from serial port).
15 - TXD (transmit to serial port).
30 - AVCC.
31 - GND.
32 - AREF.
Pin 1 is top left (with dot being up), Pin 20 is bottom left, Pin 21 is bottom right, and pin 40 is top right.

If you have the board this is way easier, as it is just the 2X3 pinout to the 2X3 pinout.

Edited 1 time(s). Last edit at 09/16/2011 12:55PM by marnargulus.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 02:30PM
I checked all the wiring it looks good as long as PWM 7-13 are the same as D7-D13.

I assume you are following this guide: [themakersworkbench.com]

Check that the notch on the LED are facing the same way as the one that works.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 02:57PM
wiring is based on wiki below:

[reprap.org]

Yes it is a Mega Clone. All LEDs flash initially then LED1 is ON.

Runs on Win7 32bit mode.

I will look into the themakersworkbench.com.

Edited 1 time(s). Last edit at 09/16/2011 03:05PM by fteo88.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 03:25PM
Try putting a 110-124 Ohm resistor between the reset pin and the 5V pin. This should disable the auto-reset.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 03:28PM
fteo88 Wrote:
-------------------------------------------------------
> wiring is based on wiki below:
>
> [reprap.org]
> ader_using_Arduino_as_ISP
>
> I will look into the themakersworkbench.com.

themakersworkbench.com and the reprap wiki is the same thing.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 03:50PM
Can anyone confirm that the 1280 uses PWM instead of D#?
I'm not familiar with that particular model of Arduino, so I can't do any tests on it.
Re: Error burning bootloader atmega1280 & 644P
September 16, 2011 06:57PM
atmega from arduino site

The Mega is designed to be compatible with most shields designed for the Diecimila or Duemilanove. Digital pins 0 to 13 (and the adjacent AREF and GND pins), analog inputs 0 to 5, the power header, and ICSP header are all in equivalent locations. Further the main UART (serial port) is located on the same pins (0 and 1), as are external interrupts 0 and 1 (pins 2 and 3 respectively). SPI is available through the ICSP header on both the Mega and Duemilanove / Diecimila. Please note that I2C is not located on the same pins on the Mega (20 and 21) as the Duemilanove / Diecimila (analog inputs 4 and 5).
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 08:44AM
The only thing I can think of is that maybe you need to go back to Arduino-18 and -F force the 644P. I had problems loading my chip, but I built a DAPA and just bit-banged the hex file on. Arduino used to support Sanguino boards, but it looks like they removed support?
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 02:33PM
I think, I narrow it down to either Arduino or the clone board. The clone uploaded fine but failed when bootloading. Rewire 3 diff location on the breadboard to eliminate breadbord from the list. Tried bootloading of SL 1.2 & 1.3a 6-pin MOSI etc connectors and results are the same. Swapped 2 usb cables - eliminated from the list. Also eliminated 644P - tested pre- bl and blank 644p and 644.

The only thing left is the board or Arduino. Will dl 0018 and bl from there. Ordered older atmega328 Genuine Arduino Duemilanove.

Anybody had sucess bl? If so what hardware and software versions do you use?
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 02:56PM
I bit-banged mine with -18 arduino and sanguino, using a parallel port wired directly to the ISP ports on my board. I supplied usb power to the board. I think that 22 is not playing well with sanguino. Since I'm running Ubuntu, I can't be a great source of troubleshooting your system. I know in Ubuntu you have to force the 644P as the software will say that the ID is not correct.
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 03:11PM
I'd really like you to try without all the LED's and such, with the 5V and GRN there are only 4 wires you need to run. If it doesn't work with that the chip is screwy.
Oh and try stripping the P. ie: 644p -> 644
sanguino.bootloader.file=ATmegaBOOT_644P.hex -> sanguino.bootloader.file=ATmegaBOOT_644.hex
sanguino.build.mcu=atmega644p -> sanguino.build.mcu=atmega644

I'm sorry I'm not as much help as I thought, without hardware in front of me to swap around until it works I'm less useful than usual.
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 03:15PM
Read the parallel port method and I am little confused. I have one really old laptop w parallel and serial ports. Saw pictures that used serial to parallel port using resistors.

Can it directly connect from pc parallel port to the soldered wired parallel adapter and breadboard w 644p? Do you have photos?
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 03:24PM
I don't have any photos right now, I can take a picture of my board when I get off work. You don't even technically need the resistors, as they just protect the computer port from getting overloaded. But you can go to a radio shack, get the parallel port plug (DB25 I think?), and just wire directly to the pins. Then you plug it into the computer, and the wires run to the ISP on the board. When I do my boards, I do the parallel port to the ISP pins on the completed board (with pololu's as I think I recall someone saying they are needed??? Can anyone verify?), and the USB provides my power.

[www.arduino.cc] This is the overall adapter
and I wrote up a summary of how to apply their drawing (which is dumb, why no schematic?) to the Sanguino board.
[forums.reprap.org]
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 11:09PM
OK, this the old school direct wire from DB25 to SL 6 pin?

So, PC parallel 25pin port to the DAPA (25 to 6 pin) then 6 pin toSL 1.2 or 1.3 with the 644 on the board.

The dino laptop is running Win2K and has one USB. So connect USB for 5V power and only 5 pins are used for DAPA connection to SL. Is that correct? A picture would be worth a thousand explanation.
Re: Error burning bootloader atmega1280 & 644P
September 19, 2011 11:33PM
The current Sanguino bootloader will not work with an ATmega1280p. We are working on a fresh bootloader for the 1280P that will make it a drop in replacement for the Sanguinololu 1.2-1.3a. It should be in the SL git within a few weeks.

That tutorial is mine (both the wiki and TheMakersWorkbench.com (my site)) I have burnt 5 ATmega 644p using that method so it is sound. I will try it with a Arduino mega in a week or so, and if there are any major differences I will add in a section for the Arduino Mega.


Charles Gantt.
Build blog [themakersworkbench.com] <---- my personal site
Build worklong [www.thebestcasescenario.com]
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 01:07AM
I should clarify that I am using Arduino mega clone 1280 & bootloading 644 644P. It isnt working.

So I am going to try DAPA and Genuine Arduino Duemilanove328 as the programmer.
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 08:50AM
Reclarify: Mega is ISP not recieving bootloader. 644P is blank.
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 01:19PM
Soldered 5 pins to DB25 (DAPA) connected to lpt1 back of the old Win2k laptop. DAPA to SL complete with blank 644P. No Polulu installed.
Ran Avrdude and error while burning bootloader: can't open device "giveio". Failed to open parallel port "lpt1".

"lpt1" exist and running under device manager. Choose burn bl w/ Parallel programmer.
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 01:39PM
Must run install_giveio.bat to init lpt1 to eliminate giveio error

New bl error:
verification error, first mismatch at byte 0xf800
0x0c != 0xff
verification error, content mismatch


Edited 1 time(s). Last edit at 09/20/2011 01:58PM by fteo88.
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 02:58PM
What command are you using? something like thismoody smiley
'C:/avrdude/avrdude' -C 'C:/avrdude/avrdude.conf' -c dapa -p atmega644p -P lpt1 -U flash:wconfused smileyanguino/bootloaders/atmega644p/ATmegaBOOT_644P.hex

You can use -b to set the rate, make sure it matches your COM settings in device manager

make sure boards.txt has this:
sanguino.upload.protocol=stk500 to sanguino.upload.protocol=arduino

under configuration.h make sure that
#define MOTHERBOARD to be #define MOTHERBOARD 62
(62 is the sanguinololu 1.3a board) [This is for the sketch]
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 03:03PM
Try setting the fuses first:

avrdude -B 8 -p atmega644P -C (path to avrdude config) -c dapa -P lpt1 -U lfuse:w:0xFF:m -U hfuse:w:0xDC:m -U efuse:w:0xFD:m
Re: Error burning bootloader atmega1280 & 644P
September 20, 2011 03:04PM
At least we've made some progress, as at least you are getting info from the chip.
Sorry, only registered users may post in this forum.

Click here to login