Forum Index > Projects > Other projects
 ISP Shield 2.0
 |  Printable Version
By: Anonymous: Robert L () on Tuesday, August 16 2011 @ 11:02 AM PDT (Read 2674 times)  
Anonymous: Robert L

hi folks,

I'm using an ISP shield to program an atMega328 with a simple sketch. But I'm getting an error when I attempt to upload the sketch.

avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Double check chip, or use -F to override this check.

The chip is a 328, and oriented correctly. I'm using an Arduino Diecimila with a 168 as the programmer.

My plan is to use the board to also program atTiny85s, but to test it I want to make sure I can do this to a 328 first.

Any thoughts?

thanks,
robert.




My boards.txt entry is:

atmega328eb.name=ATmega328 via ArduinoISP(16 MHz)

atmega328eb.upload.using=arduino:arduinoisp
atmega328eb.upload.maximum_size=30720
atmega328eb.build.mcu=atmega328p
atmega328eb.build.f_cpu=16000000L
atmega328eb.build.core=arduino:arduino

atmega328eb.bootloader.low_fuses=0xE2
atmega328eb.bootloader.high_fuses=0xD9
atmega328eb.bootloader.extended_fuses=0x07
atmega328eb.bootloader.path=arduino:atmega

atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex

atmega328eb.bootloader.unlock_bits=0x3F
atmega328eb.bootloader.lock_bits=0x0F






       
   
By: Windell (offline) on Tuesday, August 16 2011 @ 12:18 PM PDT  
Windell

I'm using an ISP shield to program an atMega328 with a simple sketch. But I'm getting an error when I attempt to upload the sketch.

First, is a hardware or software issue? Are you able to use the ISP shield via the "burn bootloader" option?

I'm not an expert on the boards.txt file, but it's definitely not clear to me what you're trying to do there. Are spaces actually allowed? Shouldn't it be upload.using=arduinoisp rather than upload.using=arduino:arduinoisp? And, if you're using avrisp, do you really want to use a bootloader?

In any case, if the hardware is working fine, then I'd suggest that you consider programming through avrdude. That is what our kit is designed to support, and it's certainly much easier to go that way for the ATtiny85 as well.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: Anonymous: Robert L () on Tuesday, August 16 2011 @ 03:03 PM PDT  
Anonymous: Robert L

Quote by: Windell

I'm using an ISP shield to program an atMega328 with a simple sketch. But I'm getting an error when I attempt to upload the sketch.

First, is a hardware or software issue? Are you able to use the ISP shield via the "burn bootloader" option?



Woot! figured it out - thanks for the useful clue.

I needed to have the ISP Shield set to OVERRIDE RESET - YES PLEASE !

Then the bootloader would program!



I'm not an expert on the boards.txt file, but it's definitely not clear to me what you're trying to do there. Are spaces actually allowed? Shouldn't it be upload.using=arduinoisp rather than upload.using=arduino:arduinoisp? And, if you're using avrisp, do you really want to use a bootloader?



boards.txt is pretty flexible it seems. I mainly used copy/paste to create the new entry. With that I can program a sketch in the Arduino IDE, and upload it to an atmega328.

... drum roll please... and it worked!




In any case, if the hardware is working fine, then I'd suggest that you consider programming through avrdude. That is what our kit is designed to support, and it's certainly much easier to go that way for the ATtiny85 as well.



For the atTiny85 (and its cousins) I've added patch wires to connect the SCK/MISO/MOSI to pins 27,26,25 which are otherwise unused. Then I connected pin 28 to Vcc, and pin 4 to ground.

This lets the atTiny85 sit in the top of the ZIF socket and pins 1..4 map to 1..14 on the tiny, and pine 25..28 map to 5..8

I used the atTiny45_85 core definitions from:

http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585

Works like a charm! I'll try to upload a picture

thanks,
Robert





       
   
By: Anonymous: Robert L () on Tuesday, August 16 2011 @ 03:25 PM PDT  
Anonymous: Robert L

Some pictures...

The wiring diagram


http://www.flickr.com/photos/29096048@N02/6051129970/in/photostream/

the result, with some bonus atTiny85s in the background:


http://www.flickr.com/photos/29096048@N02/6050578797/in/photostream/

hmm, that doesn't seem to work as well as I'd have liked.






       
   
By: Windell (offline) on Tuesday, August 16 2011 @ 03:41 PM PDT  
Windell

OK, great, and congrats on a neat hack!


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   



 All times are PDT. The time is now 03:21 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?