Loading...
Pages: 1 [2]   Go Down
Author Topic: Bootloader with arduino uno Rev3 as isp?  (Read 1769 times)
0 Members and 1 Guest are viewing this topic.
South Texas
Offline Offline
God Member
*****
Karma: 8
Posts: 976
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the chip number you are trying to load a bootloader on? The Arduino uses a 328P and it sounds like you may have gotted a 328. A minor problem, and easy to work around, just means there are a couple relatively easy things to learn to get the bootloader working. Once it has the bootloader its just an Arduino chip.

If you want to learn how to use AVRDude directly I can give you the commands to program the chip - from a DOS prompt.
Logged

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

I will definatly try that but I need some clearifycations:
Ok so I upload the optiloader sketch to my Arduino uno with the uno selected in the board menu? Also do I upload the optiloader after I connect the extra atmega chip? Also I just went to the link and is it the optiloader.pde or optiloader.h that I need?
kf2qd: I made sure to get the proper chip, it matches the one allready on the uno exactly smiley
Just in case, here is what I got: http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&lang=en&site=us&keywords=atmega+328P-PU&x=22&y=17
« Last Edit: April 21, 2012, 01:42:51 pm by Shadow2917 » Logged

Southern California
Offline Offline
Sr. Member
****
Karma: 5
Posts: 466
I like blinky lights
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
so I upload the optiloader sketch to my Arduino uno with the uno selected in the board menu?

Yes. Exactly like you would upload any other sketch...blink, your own, etc.

Quote
Also do I upload the optiloader after I connect the extra atmega chip?

It doesn't really matter. If you run the sketch without a target chip, OptiLoader will just complain it couldn't write the bootloader to the (nonexistent) chip.

Quote
Also I just went to the link and is it the optiloader.pde or optiloader.h that I need?

You need them both. Put them both in the same directory / folder on your computer.

Quote

That's the one, although I think OptiLoader will burn the bootloader to both types of chips.
Logged

http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

Upstate NY
Offline Offline
Full Member
***
Karma: 2
Posts: 167
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



Quote

That's the one, although I think OptiLoader will burn the bootloader to both types of chips.

Yes, optiLoader will burn both the 328 and 328p chips.
Logged

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

Well heres what happened: I uploaded the script and opened the serial monitor, not checking the baud rate so it printed a bunch of random charactors because the baud rates didnt match. Then I changed the baud rate of my monitor to match what was in the script and got this:
"OptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)

Target power on! ...
Starting Program Mode - Failed, result = 0x0

Target power OFF!

Type 'G' or hit RESET for next chip"
Does that mean it failed or that it allready has the bootloader on it??
Logged

Upstate NY
Offline Offline
Full Member
***
Karma: 2
Posts: 167
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It failed.  I was able to reprogram a 328 that had a bootloader on it already.

You need to post a picture or pictures of your setup.
Logged

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

Here it is!
« Last Edit: April 23, 2012, 07:21:25 am by Shadow2917 » Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 120
Posts: 10194
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


The crystal is connected to the wrong pins.
Logged

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

Wow... I really broke the genius scale on that one xD
Thanks so much! I got it loaded with the optiloader and on the bright side, I know for next time smiley
Logged

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