Go Down

Topic: ISP: Program ATMEGA256016AU (Read 3703 times) previous topic - next topic

gnusso

Good Morning,
I've found this tutorial:
http://arduino.cc/en/Tutorial/ArduinoISP
for use an Arduino as an AVR ISP (In-System Programmer). Well this tutorial seems if i not understood bad that is working with "Arduino Uno" with cpu ATMEGA328PU.

Now I would like to do the same for programming ATMEGA256016AU due the fact mounted on our ARDUINO MEGA2560.

Is there any-guide to follow in order to do ISP programming for ATMEGA256016AU also ?

Thanks
Gnux

Cybernetician

Quote
if i not understood bad


Yes, understood bad (: just kidding.

Nick Gammon's tutorial

http://www.gammon.com.au/forum/?id=11635
http://www.gammon.com.au/forum/?id=11638

great tutorial to solve your problem.
From Idea To Invention

gnusso

Hi , thanks for the information,
ok looking the guide ... i have couple of question ... i don't see the possibility to write an ATMEGA256016AU ... so works for every atmel processor ?

Thanks
Gnux

pylon

If you're so picky, I am too: it's not an ATMEGA256016AU but an ATMEGA2560-16AU.
If you following the first link of Cybernetitian you'll find photos of an UNO programming a MEGA2560. The cable is from the ICSP header to the ICSP header. You can use exactly the same wiring with a configuration MEGA2560 to MEGA2560.

Quote
so works for every atmel processor ?


No, but for every 8bit Arduino (all except the Due).

gnusso

So maybe I'm explain the issues not very well ...

I've avaiable:

- ARDUINO UNO
- ARDUINO MEGA

and I've bought and blank ATMEGA2560-16AU no boot loader inside ... from your word if i not understood bad I need to develop a board with Clock, Resistance, condensator. Then when I'll have it i can burn this board like an arduino ... (of course i will do a isp connector and other stuff) correct ?

Thanks
Gnux

CrossRoads

That is correct.
The board can be a breakout board like this
http://www.schmartboard.com/index.asp?page=products_qfp&id=70

Or you design your own card that will have the 16MHz oscillator, 22 pF caps, 10K reset resistor, 100nF power supply caps, and whatever else you need, like this one.
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.

gnusso

Perfect Thanks for the clarify :-)

so I will take a Arduino Mega schematic :-)

EAGLE files: arduino-mega2560_R3-reference-design.zip

and then I will do all stuff needed ... another trivial question ... after i will have burn a boot loader which are the steps for upload the sketch also ?

Thanks a lots for the support,

Gnux


CrossRoads

After the bootloader, you use a USB/Serial interface chip (such as FT2323RL, or an FTDI adapter board, or CP2102 board) to load sketches into the board using the Rx/Tx pins.
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.

gnusso

Hi Thanks for the information,

then mainly when I'll have the circuit with FTDI or Serial i need to:
a) Choose "Arduino Mega 2560", Choose the right Port, and burn Bootload

then I need to upload my sketch:

and inside arduino which modification I need :

Type : Arduino Mega 2560 ?

Serial Port : the port that I've set

Programmer :
- AVRISP
- AVRISP mkII
- USBtinyISP
- USBasp
- Parallel Programmer
- Arduino as ISP

I think is Arduino as ISP,

Once I've set this I can upload my sketch in the normal way clicking unpload correct ?

sorry i do a trivial question but is the first time that I've in front off me this kind of aspect and I need a little bit for take confidence,

regards,
Gnux

CrossRoads

You will install bootloader using your existing Uno and NickGammon's bootloader sketch:

http://www.gammon.com.au/forum/?id=11635

Then connect the USB/Serial interface, start the IDE, select the COM port,
select Tools: Board:Mega2560
use the regular buttons to upload a sketch.
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.

gnusso

Sound's very good ;-) now I've understood :-) so many thanks for clarify it to me :-) ...

the first time it's always a little bit tricky :-)  maybe in the mean time that I will be ready with circuit i will try with arduino and arduino mega like into example ...

I hope to not to damage the Arduino Mega ;-)

Have nice week end,
Gnux

gnusso

#11
Mar 22, 2013, 07:54 am Last Edit: Mar 22, 2013, 07:57 am by gnusso Reason: 1
Good Mornining,
Hi I've did the cable the Arduino uno (MASTER) and arduino 2560 (where I want upload my bootloader and after the sckecht) are connected correctly and are turned on .

Now I've download from your link the sketch for BOOTLOADER below reported and I've try upload it inside my ARDUINOMEGA2560,

Code: [Select]

// File =  stk500boot_v2_mega2560_fixes_watchdog_problem.hex
// Loader start: 3E000, length: 8192
// MD5 sum = 8A F4 7A 29 43 A0 D8 7C DB ED 09 A3 8F 40 24 1E
// https://github.com/arduino/Arduino-stk500v2-bootloader/blob/master/goodHexFiles/stk500boot_v2_mega2560.hex

// TOO LONG I didn't reported because is too long ...



But I've finished i received back this issues:

Dimensione del file binario dello sketch: 25.442 bytes (su un massimo di 258.048 bytes)
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

I've set the programmer like your indication,

what could i check ? Could you send me how need to be setup arduino for uploader the boot loader ?
THanks
Gnux

Nick Gammon

Show us your fuse settings please.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

gnusso

Hi Nick, now I'm at work just when i'll go to home i will send to you the screen shot ...

just to understand well you need to the fuse configuration on arduino ?

Sorry for the trivial question but where i can find it ?



Thanks for the support,
Andrea

Nick Gammon

Yes, the Arduino fuse settings.  <resists urge to make joke about house fuses>

Here's one way of doing it:

http://www.gammon.com.au/forum/?id=11633

That doesn't require avrdude.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

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!

Arduino
via Egeo 16
Torino, 10131
Italy