Pages: 1 2 [3] 4 5   Go Down
Author Topic: ArduinoISP Arduino uno & blank atmega8 bootloader burn trouble  (Read 5871 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
... im gonna give this a fair shake and read in detail as a favor to myself to atleast give one more chance ...

Good work. I made up that sketch because I wanted to be able to program without all those annoying messages from avrdude.

I warn you that I don't have an Atmega8 (I might order one) so that isn't actually tested with one. It did work with all the other chips I tried in the post.

However at the very least it should report the chip signature, like this:

Code:
Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xCF
Bootloader address = 0x7E00
Bootloader length = 512 bytes.

(Of course yours will be a different signature).

That will prove that you can "talk" to the chip, and that your wires are around the right way etc.

These messages appear in the Serial Monitor so make sure you turn that on after uploading the sketch, and set it to 115200 baud.

I believe I incorporated the correct bootloader into the sketch, as someone else had asked about it a while back.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 109
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote from: mysteredding
because i was looking for arduinoisp error fixes not a whole new method of use, when i get done with this other tutorial if it doesnt work i'll give yours a look and try again
This is a completely different story. You should have told it from the beginning.
« Last Edit: November 25, 2012, 04:32:24 pm by simplex » Logged

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

im gonna be hella mad if it doesnt work
Likely microcontrollers and electronics in general are not for you.
It is self evident you have not read any help page from the beginning to the end. You do not have enough patience.
apparently you have never met me and therefore dont know me so dont go making an assumption about me thats obviously wrong, ive been repairing electronics for YEARS and working with arduino for only 1 so im still very new to it, but if you arent gonna give help and just criticize then dont post again
Logged

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

You shouldn't need a crystal, by the way.

Just as a heads-up, I think those chips are usually shipped to run off the internal 8 MHz oscillator, with the "divide clock by 8" fuse set. My programmer should work OK, I've used it with other "fresh" chips, but you might find you need to alter the fuse to get it up to full speed (once you have the bootloader on it). If you don't, it will be running at the wrong baud rate and the bootloader will appear not to be working.
Logged

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

I warn you that I don't have an Atmega8 (I might order one) so that isn't actually tested with one. It did work with all the other chips I tried in the post.
i had noticed tho your tutorial doesnt incorporate completely blank(no-bootloader) bare(no-crystal) microcontrollers, have you tried it that way to see if itll work? im trying to get as much info on this as i can before i try it
Logged

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

(from tutorial) Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader
is that for the chip being bootloaded(blank chip)?
Logged

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

somewhere along the line i got this error
/usr/share/arduino/hardware/arduino/cores/arduino/Arduino.h:212:26: fatal error: pins_arduino.h: No such file or directory
compilation terminated.
Logged

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

You shouldn't need a crystal, by the way.

Just as a heads-up, I think those chips are usually shipped to run off the internal 8 MHz oscillator, with the "divide clock by 8" fuse set. My programmer should work OK, I've used it with other "fresh" chips, but you might find you need to alter the fuse to get it up to full speed (once you have the bootloader on it). If you don't, it will be running at the wrong baud rate and the bootloader will appear not to be working.
this is all i get, then hit reset
Quote
Atmega chip programmer.
Written by Nick Gammon.

Atmega chip programmer.
Written by Nick Gammon.
Logged

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

i had noticed tho your tutorial doesnt incorporate completely blank(no-bootloader) bare(no-crystal) microcontrollers, have you tried it that way to see if itll work? im trying to get as much info on this as i can before i try it

Perhaps not on that page, but on this one I did:

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

Example:

Logged

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

is that for the chip being bootloaded(blank chip)?

Yes, that's for the target chip. It only asks that for an Atmega328P. One answer gives you an 8 MHz internal oscillator bootloader, the other one gives you the 16 MHz bootloader.
Logged

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

Quote
Atmega chip programmer.
Written by Nick Gammon.

Atmega chip programmer.
Written by Nick Gammon.


Right. That indicates that you are not succesfully "talking" to the target chip. I think the wiring is the same as the Atmega328 so your wiring should exactly match the photo above.
Logged

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

Quote
Atmega chip programmer.
Written by Nick Gammon.

Atmega chip programmer.
Written by Nick Gammon.


Right. That indicates that you are not succesfully "talking" to the target chip. I think the wiring is the same as the Atmega328 so your wiring should exactly match the photo above.
ive read your second tutorial and im guessing my 3rd party order has a pre-loaded bootloader to need a crystal, ive got some rip-outs(salvaged from old electronics) ive got a 13.#### mhz it fits onto that 4-20 range but am very limited on capacitors to use with it, are the capacitor numbers crucial to the crystal? or can i use some 47pico? and im not even sure about that number either i bought em took em out of package and forgot about em for a good while
Logged

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

See this photo:



Note the extra "clock" wire. That should be enough to clock the chip over. I'm pretty sure it worked for me.
Logged

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

tell you what Nick, you gave me a hell of a step in the right direction, plugging the crystal in and whatever capacitors im using(22j ceramic) which im guessing are the 22pico i needed read the chip found out yea it has a bootloader on it, im gonna try all i can to get this to work now, and thank you very much for having so much patients with me even tho my attitude was less than deserving of it, and i saw how busy you were helping everyone else, i really do appreciate everything you've done
Logged

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

Quote
ive got a 13.#### mhz it fits onto that 4-20 range but am very limited on capacitors to use with it, are the capacitor numbers crucial to the crystal?

That could work, plus there's a school of thought that the stray capacitance on the breadboard will be enough.
Logged

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