Go Down

Topic: ATTiny85 arduinoisp problem (Read 10 times) previous topic - next topic

Coding Badly

Hey Frozen_One,

Have you tried writing any boards.txt files that let you write directly to a virgin ATMega328 or 168 like you did with the ATtiny84/5?


Yes.  It works very well.  Tiny Tuner (an unpublished version) works well to tune the internal oscillator.  I'll try to get a Tiny Tuner update out this weekend that includes 328 / 168 support.

Quote
It would be huge to not need to load a bootloader to them- like the ATtiny85


It is nice!  I should be able to deliver another Tiny Core update this weekend.  I'll include 328 and 168 entries in boards.txt.

Do you use virgin 328 / 168 processors with or without an external 16 MHz crystal?  How do you typically power the processor?  Direct from batteries?  +5V regulated?

Quote
But maybe I am unaware of obstacles in doing your magic with more AVRs.


No obstacles.  It works well.  And, for the record, while I'd like to be that clever, it isn't my magic.  But, as I've always said, the best idea is a stolen one.   :smiley-surprise:

In case you need an entry or an alternative to the one that will be in the Tiny Core... I believe there is a "breadboard 328" entry available in the playground that should serve the same purpose.  I vaguely recall publishing an entry in the old forum.

Quote
The ATtiny85 port has been working like a charm


Excellent!  There are a few simple things that can be done to dramatically improve it.  I think that's next on the list.

Quote
I have shown quite a few others how to do it, here at work


Hmmm.  Sounds to me like you have some "teacher" in you.  Care to apply that skill to some documentation?

Quote
Thanks again!


You are welcome!

Bobnova

I've been playing with a tiny85 and arduinoisp as well, so far it has worked perfectly for me, I'm very happy with it!
THANK YOU to coding badly for the attiny85 support, and to whoever it was that wrote arduinoisp, too!

So far the only issue I've had was forgetting to set the board type to/from attiny85 (well that and sticking my BBB into the breadboard one pin too far to the right, that didn't work well either :P), other then that it's been problem-free.

Coding Badly

Excellent!  Any suggestions?

92_foxgt

Sorry for the super long delay between posts, school work has kept me busy until I passed out everynight lol. Here is my avrdude report:
Code: [Select]
C:\Users\>C:\Users\Documents\PCB_Projects\arduino-0022\arduino-0022\h
ardware/tools/avr/bin/avrdude -CC:\Users\Documents\PCB_Projects\arduino-00
22\arduino-0022\hardware/tools/avr/etc/avrdude.conf -v -v -v  -pattiny85 -cstk50
0v1 -P\\.\COM14

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\Users\Documents\arduino-0022\arduino-0022\hardware/tools/avr/etc/avrdude.conf"

         Using Port            : \\.\COM14
         Using Programmer      : stk500v1
avrdude: ser_open(): setting dtr
         AVR Part              : ATtiny85
         Chip Erase delay      : 4500 us
         PAGEL                 : P00
         BS2                   : P00
         RESET disposition     : possible i/o
         RETRY pulse           : SCK
         serial program mode   : yes
         parallel program mode : yes
         Timeout               : 200
         StabDelay             : 100
         CmdexeDelay           : 25
         SyncLoops             : 32
         ByteDelay             : 0
         PollIndex             : 3
         PollValue             : 0x53
         Memory Detail         :

                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0  4000  45
00 0xff 0xff
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           flash         65     6    32    0 yes      8192   64    128  4500  45
00 0xff 0xff
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           signature      0     0     0    0 no          3    0      0     0
0 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           lock           0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           efuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           calibration    0     0     0    0 no          2    0      0     0
0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 3
         Firmware Version: 3.3
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: Expected signature for ATtiny85 is 1E 93 0B
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.

wyager


Go Up