Pages: 1 2 [3] 4   Go Down
Author Topic: Turn Arduino into an ISP programmer  (Read 9109 times)
0 Members and 1 Guest are viewing this topic.
B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've noticed that in the new Arduino 0018, there is now an option to burn a bootloader using Arduino as ISP.

Does this use the same method as this thread describes, but all combined into the IDE?

I also noticed the Sketch you have to upload to the Arduino you will be using as the ISP.

If this is so, how do you select which bootloader will be burned?  Is it based on which board you have selected in the Tools->Boards menu (like burning bootloaders with other methods)?

Thanks!
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Tutorial/ArduinoISP
Didn't work for me, but I didn't try very hard.
Eberhard
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, cool!  Didn't realize there was a Playground page for it yet!

If you don't mind my asking, what about it didn't work?
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Avrdude complained the chip I was about to program had the wrong  signature.

But as I said, didn't investigate any further (lack of time and I already have hardware programmer).

Eberhard
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Alrighty.  I'm getting ready to try and reflash my RBBB ATmega328.

There's nothing wrong with it (other than it's the old bootloader), but I thought I'd try out ArduinoISP.

I'll post here what happens.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17293
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If this is so, how do you select which bootloader will be burned?  Is it based on which board you have selected in the Tools->Boards menu (like burning bootloaders with other methods)?

I think it's a two step process. First you have to select the actual board type that you are going to load the bootloader burner sketch into. Once that sketch is loaded and running on the board you then have to wire the board to the chip or board you are going to burn a new bootloader into and then you have to select the board type that corresponds to the chip you are burning the bootloader into.

That make sense?

Lefty
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah that's what it says on the ArduinoISP page.
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey, it worked!

I wired it up like it said in the example, and the bootloader burned fine, and my RBBB is now running the Blink sketch I just uploaded!

Great to know it works!
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17293
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Great to know it works!

Yes, gives one a secure feeling knowing they can recover from a bricked bootloader. However I still wonder why bootloaders get corrupted in the first place when the lock bits are suppose to protect that part of the flash memory. I posted a question on this board a while back asking for theories on how bootloaders get screwed up, however not much feedback from the 'experts' here so it's all still a mystery.  smiley-wink

Lefty
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I suppose it's one of those things no one really gets, like parallel resistance in a circuit (or does someone understand how that works? I sure as heck don't) ;D.

I bought some 'mega644s off of eBay (20 bucks for 6 of 'em), and I'm planning on making some StripboardDuino644s smiley, but first I needed to know that I could burn the Sanguino bootloader.
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

what is the advantage of a 644
Logged


B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, I found them for under 4 bucks each, and they have 32 total I/Os smiley-razz.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17293
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
what is the advantage of a 644

More memory of all types, 40 pin allows for more I/O pins, two hardware serial ports, more user interrupt pins. Maybe more, I forget, but it's a great chip that fits nicely between the 328 and the 1280 chips. However you do have to modify the Arduino IDE as it does not support the 644 as shipped.  smiley-sad

Lefty
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17293
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
like parallel resistance in a circuit (or does someone understand how that works?

That's not too hard to master. Study ohm's law and kircoff's (sp?) laws and you will be solving those problems in a flash.  smiley-wink

Lefty
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually, only the 644P has two Serial ports, the plain 644 only has one smiley-sad.

I know the formulas for parallel resistance, but does anyone get why it works like it does?  How could there be a resistance of 100 Ohms, when the only path for the electricity to travel is through parallel 200 Ohm resistors? smiley-razz
Logged

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