Go Down

Topic: Burning Bootloader onto Atmega 2560 (Read 15452 times) previous topic - next topic

sbel

I'm having issue trying to burn the bootloader to an Atmega2560 on a custom PCB using an UNO. The schematic for the entire PCB is attached to my post (ignore the peripherals and power supply connected to the MCU). I have test points to the necessary pins needed for ISP. I wired the Arduino UNO to the right pins on the Atmega2560 on our PCB as shown in the Arduino tutorial with a 10 nf capacitor wired between reset and gnd on the UNO.

Next, I open the Arduino IDE and open the Arduino ISP code under the examples. I plug in the UNO and upload this code it with no issue. However, I am receiving error messages each time I try to burn the bootloader.

The first message I got said "expected signature for Atmega2560 is 1e 98 01. Select -f to override." I go to serial monitor and type -f but nothing happens. I looked up a few forum posts and people say you need to configure your Atmel chip under the "avrdude.config" folder that is in your Arduino folder under avr/etc/.... I go there and don't see it so I upload the newest version of Arduino v.1.5.2. This folder is there so I try burning the bootloader again and that's where I get the message "stk500_getsync() not in sync resp=0xff". I tried researching this message to no avail.

Any advice or ideas would be greatly appreciated.


baselsw

Did you try Nick Gammons tutorial?? The tutorial is easy and awesome at the same time =).. Try the Atmega Board Programmer, a lot easier than the built in Arduino IDE solution.. Here is the link: http://www.gammon.com.au/forum/?id=11635

sbel

I tried that but after spending a whole day working on the project,we learned our chip doesn't need a bootloader. Somebody explained that it has something to do with not having a USB-to-serial conversion chip on our PCB if I remember correctly. We were led to using the AVR pocket programmer found here: https://www.sparkfun.com/products/9825 which let us easily upload the Blink sketch with no issue.

I do appreciate the help though. The Gammon tutorial does make up for a lot of the issues I was reading that dealt with uploading the Arduino bootloader.

davidcyr2000

The Sparkfun Pocket AVR Programmer is not supposed to work with the 2560.  The Sparkfun website link you posted says:  "The ATmega328 on an Arduino Uno or RedBoard works perfectly, but the ATmega2560 of an Arduino Mega does not."
Were you using an ATmega2560 when you said it worked "...with no issue."?

CrossRoads

"a 10 nf capacitor wired between reset and gnd on the UNO."
10nF wouldn't do much, 10uF perhaps. Large difference.

Going to be doing a lot of programming? Maybe a standalone Programmer running Nick Gammon's code is what you need.
http://www.crossroadsfencing.com/BobuinoRev17/
Choose from 1 of 256 programs on the SD card to put on the target board.


Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

justjohn

CrossRoads,
Going to be doing a lot of programming? Maybe a standalone Programmer running Nick Gammon's code is what you need.
http://www.crossroadsfencing.com/BobuinoRev17/
Choose from 1 of 256 programs on the SD card to put on the target board.
That's a nice little programmer. Lot's of nice things at your site/store.

Go Up