Loading...
Pages: 1 [2]   Go Down
Author Topic: Bootloader problem - Arduino Mega and Duemilanove  (Read 1524 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 23
Posts: 1381
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's an ATmega328P-PU and not a ATmega328-PU?
And you have the Board selected = Duemilanove?
Logged

Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well,
I really really appreciate the help extended by all the friends here. Special thanks to Mr. Nick Gammon. Your solution worked like a charm sir.
It comes out that I was using wrong pins of Mega to connect to duemilanove. This should have been explained by arduino guys while explaining how to use Arduino as ISP. Thanks to Mr. Gammon, I used the mega pins as he explained and followed the instructions given at http://www.sparkfun.com/tutorials/247 religiously.
I was able to successfully program both the new Atmega328p and they are taking up sketches as they are supposed to.

A word of caution though, for newbies like me: Avrdude does not work properly with IDE 0018. while worked perfectly with IDE 1.0. Also, the bootloader for 328p that comes with "Arduino Optiboot Bootloader" ( which can be downloaded at the sparkfun page linked above) did not work for me. It burned the bootloader but then I was unable to upload sketches to 328p. Contrary to that, the bootloader that comes arduino IDE, works perfectly fine.

@CrossRoads: do we need to set fuses first for the new part for using optiloader to program directly through mega?

Regards
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 249
Posts: 16540
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@drwaseem,
I don't know.   westfw could probably answer that.
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

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