Pages: [1] 2 3   Go Down
Author Topic: ISP: Program ATMEGA256016AU  (Read 1822 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

From Idea To Invention

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 96
Posts: 4702
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* gps_bare.jpg (145.39 KB, 640x368 - viewed 18 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
// 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
« Last Edit: March 22, 2013, 01:57:44 am by gnusso » Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Show us your fuse settings please.
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 407
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1] 2 3   Go Up
Jump to: