Getting started with attiny10?

Go To Last Post
39 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have been seeing all the craze with programming attiny10 from ben heck youtube channel. I also would love to do it. I bought these attiny10 over 2 or 3 years ago but never got around to it because the last i have tired to get them working they was not on the Arduino IDE or something. But now I'm seeing more and more people working with it and i would love to be apart of it. I just have one problem i have no clue how to program this chip because it is not what i normal use a Ardino IDE software. Also I'm not really a programmer But I'm learning.

 

Here is what i know so far and what i have done.

 

1: setup atmel studios
2: i have downloaded avrdude and put it in the C:\avrdude\avrdude\avrdude.exe
3: i went into atmel studio from the research i did online into the external tools and added a new external tool then called it USBASP programmer
4: in the external tools area for the usbasp programmer i put the command C:\avrdude\avrdude\avrdude.exe, in the Arduments area i put in -c usbasp -p attiny10 -v -U flash:w:$(BinDir)\$(TargetName).hex:i form what i read online and in the Initial directory i put in C:\avrdude\avrdude\

And this is what i have gotten when i try to upload it
 

avrdude.exe: Version 5.10, compiled on Jul 17 2010 at 22:59:45
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "C:\avrdude\avrdude\avrdude.conf"

             Using Port                    : lpt1
             Using Programmer              : usbasp
avrdude.exe: seen device from vendor ->www.fischl.de<-
avrdude.exe: seen product ->USBasp<-
             AVR Part                      : ATtiny10
             Chip Erase delay              : 0 us
             PAGEL                         : P00
             BS2                           : P00
             RESET disposition             : dedicated
             RETRY pulse                   : SCK
             serial program mode           : yes
             parallel program mode         : yes
             Timeout                       : 0
             StabDelay                     : 0
             CmdexeDelay                   : 0
             SyncLoops                     : 0
             ByteDelay                     : 0
             PollIndex                     : 0
             PollValue                     : 0x00
             Memory Detail                 :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               flash          0     0   128    0 no       1024   16      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   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  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               fuse           0     0     4    0 no          1    0      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               lockbits       0     0     0    0 no          1    0      0     0     0 0x00 0x00

             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/

avrdude.exe: auto set sck period (because given equals null)
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe done.  Thank you.

 

 

So i keep looking around and came saw this. I have found a new argument  avrdude -c usbasp -p attiny10 -U flash:w:$(ProjectDir)Debug\$(TargetName).hex:i and this is what it has given me

 

 


avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe done.  Thank you.

 

I know i connected it correctly because i followed This Website. So I'm pretty much stuck and i do not know what to do now. I have saw a few people using the command line to upload things as well as change things. I'm not a program i have no clue. I really need help. Can someone please help me?

 

 

Joseph

Last Edited: Mon. Dec 14, 2020 - 04:29 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Not to rain on your parade or anything but programming brain dead micros like this is a bit like planning a road trip from NY to LA, being given the choice of a Ferrari or a 50cc motor scooter and picking the scooter. You might get there in the end but it can be quite an uncomfortable journey. YMMV.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And I'm okay with the end. That is why I'm here to learn. I don't what I'm doing wrong, That is why i need help to understand and try to figure this out. Also i don't remember adding I'm using a USBASP programmer i bought from amazon here.

 

 

Joseph

Last Edited: Mon. Dec 14, 2020 - 04:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome to AVRFreaks!

 

I'm with cliff, the brain dead AVR's are not for beginners, but hey-ho what ever floats your boat.

Triple check your connections, it's easy to get the pin numbers mixed up, test by trying to read the device signature, nothing will work until this does.

What ever you do, DO NOT USE THE -F option!!!!!!!!!

Make sure your AVR has power at the VCC/GND pins.

 

Use the -v up to 4 for more info from avrdude.

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All connections look good. I double and triple checked them. I think the settings for the argument might be wrong or I'm using a avrdude that i don't know if it is the right one or not.

 

 

Joseph

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is the Error plus more I'm getting when i add -v -v -v -v 

 

avrdude.exe: Version 5.10, compiled on Jul 17 2010 at 22:59:45
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "C:\avrdude\avrdude\avrdude.conf"

             Using Port                    : lpt1
             Using Programmer              : usbasp
avrdude.exe: seen device from vendor ->www.fischl.de<-
avrdude.exe: seen product ->USBasp<-
             AVR Part                      : ATtiny10
             Chip Erase delay              : 0 us
             PAGEL                         : P00
             BS2                           : P00
             RESET disposition             : dedicated
             RETRY pulse                   : SCK
             serial program mode           : yes
             parallel program mode         : yes
             Timeout                       : 0
             StabDelay                     : 0
             CmdexeDelay                   : 0
             SyncLoops                     : 0
             ByteDelay                     : 0
             PollIndex                     : 0
             PollValue                     : 0x00
             Memory Detail                 :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               flash          0     0   128    0 no       1024   16      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   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  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               fuse           0     0     4    0 no          1    0      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               lockbits       0     0     0    0 no          1    0      0     0     0 0x00 0x00

             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/

avrdude.exe: auto set sck period (because given equals null)
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1 
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.


avrdude.exe done.  Thank you.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

josephchrzempiec wrote:
I have been seeing all the craze with programming attiny10 from ben heck youtube channel.
Can see why (it's in SOT)

tiny10 follow-on is tiny102 but not in SOT though does gain bootloading and a UART.

josephchrzempiec wrote:
... they was not on the Arduino IDE or something.
fyi, tiny202 can be though in a larger package than tiny10.

josephchrzempiec wrote:

avrdude.exe: Version 5.10, compiled on Jul 17 2010 at 22:59:45

AVRDUDE 5.10 might not have TPI.

 


Differences between ATtiny4/5/9/10 and ATtiny102/104

 

megaTinyCore/ATtiny_x02.md at master · MCUdude/megaTinyCore · GitHub

 

AVR Downloader/UploaDEr - News [Savannah]

Chocolatey Software | AVR Downloader/UploaDEr 6.3

 


ATtiny102 - 8-bit AVR Microcontrollers

ATTINY202 - 8-bit AVR Microcontrollers

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

my attiny10 is a 6 pin solder to a sot23 pcb that i have solder. My skills are in hardware not in software. I can build pretty much anything but programmer is still kind of new to me.

 

 

Joseph

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Which avrdude would i need?

 

 

Joseph

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

josephchrzempiec wrote:
Also i don't remember adding I'm using a USBASP programmer i bought from amazon here.
TPI can be bit-banged; another source for TPI is Arduino.

Programming ATTiny10 Chips | GitHub - wholder/ATTiny10IDE: A Streamlined IDE for Coding and Programming the ATtiny10 and other ATTiny Devices

IIRC via ATTiny10 C IDE and Improved Device Programmer - Wayne's Tinkering Page

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The Tiny10 uses TPI.

USBASP firmware does not support TPI.

 

You can re-program the good Chinese firmware with special firmware that happens to support TPI.

Note that this special firmware is crap for regular ISP programming.   And you can't recover the good Chinese firmware.

 

I can understand someone having an academic interest in seeing what can be achieved with a crippled AVR chip.

Be realistic.   It is much harder than using a regular AVR.

 

And any project is going to be fairly trivial.    Blinking an LED or watching a push button is easily done.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Apparently AVRDUDE v5.11 and subsequent though there are TPI changes since v6.3 (16-Feb'16)

http://svn.savannah.gnu.org/viewvc/avrdude?view=revision&revision=1419

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It looking like there might be one of two problems I'm seeing now. The avrdude verison I'm using doesn't support TPI or the Usbasp programmer needs to be reprogram for TPI. I'm looking into it now.

 

 

Joseph

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
You can re-program the good Chinese firmware with special firmware that happens to support TPI.

USBasp - USB programmer for Atmel AVR controllers - fischl.de

...

TPI support, ...

...

david.prentice wrote:
And any project is going to be fairly trivial.
tiny4 instead of tiny10 :

Show off your 2020 AVR project - here is one of mine | AVR Freaks

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybe the AVRDUDE that's included with the Arduino IDE is up-to-date wrt TPI.

GitHub - arduino/avrdude-build-script: avrdude build scripts for Arduino/Genuino

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have arduino 1.8.9 when i try to point the atmel studio to C:\Arduino stuff\arduino-1.8.9\hardware\tools\avr\bin\avrdude.exe i get a error saying avrdude.exe: can't open config file "": Invalid argument
avrdude.exe: error reading system wide configuration file ""

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I change that to a -C instead of a -c and i get this.

 

avrdude.exe: Version 5.10, compiled on Jul 17 2010 at 22:59:45
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "usbasp"
avrdude.exe: can't open config file "usbasp": No such file or directory
avrdude.exe: error reading system wide configuration file "usbasp"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVRDUDE: 2.1 Option Descriptions

...

 

-C config-file

Use the specified config file for configuration data. This file contains all programmer and part definitions that AVRDUDE knows about. If you have a programmer or part that AVRDUDE does not know about, you can add it to the config file (be sure and submit a patch back to the author so that it can be incorporated for the next version). If not specified, AVRDUDE reads the configuration file from /usr/local/etc/avrdude.conf (FreeBSD and Linux). See Appendix A for the method of searching for the configuration file for Windows.

If config-file is written as +filename then this file is read after the system wide and user configuration files. This can be used to add entries to the configuration without patching your system wide configuration file. It can be used several times, the files are read in same order as given on the command line.

 

...

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

josephchrzempiec wrote:

But now I'm seeing more and more people working with it and i would love to be apart of it. I just have one problem i have no clue how to program this chip because it is not what i normal use a Ardino IDE software. Also I'm not really a programmer But I'm learning.

 

 

Yay!   I support you, but I can't help you.   I'm sorta doing the same thing but with the ATTiny85.  Assembly is just another aspect of programming that I want to learn.  And quite franky, I'm having fun doing it.   Aggravating at times, but all part of the "fun".

 

Hope you enjoy it.  And wish I could help more.

 

(I saw those PIC processors in the SOT package, and even picked up a few.  But then I thought, what the heck can you do with it?  Timer?  Replace a few logic gate?  I just couldn't think of very many applications to make it worth my while at the time.   Very cool though)

Just gettin' started, again....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I use the tiny10 and like it. I did have to jump thru some hoops to get it communicating. But hang in there, I think it's a great little unit.

 

I'm on a Mac so not sure how much of this will directly apply.

 

My setup;

 

GAVRASM 4.8, using SublimeText as the IDE.

 

USBasp, generic ebay unit. I did upload the sck-Fix, but that was not essential to operation.

 

avrdude 6.0.1

 

I use this to read the device fuse ( it's a function I use for a variety of attiny's so ignore the lfuse part, and replace $1 with t10 );

 

avrdude -c usbasp -P usb -p $1-U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

 

This is what I use to upload the .hex file,

 

avrdude -p $1 -c usbasp -P usb -e -U flash:w:$2

 

I'm out of town for the next couple days but will take a closer look at the details when I'm back.

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OldMicroGuy wrote:
But then I thought, what the heck can you do with it?
secondary-side control of a SMPS

OldMicroGuy wrote:
Replace a few logic gate?
More than a few, more than several, less than many (sPLD)

 


PIC10F322 - Microcontrollers and Processors

MCP1012 1-watt demonstration board (grid C4) via MCP1012 1W Evaluation Board via MCP1012 - AC/DC - Auxiliary Controllers

 

SLG46108 | Dialog Semiconductor

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah, no doubt my somewhat limited imagination.   I think they're fantastic, a tiny 8 bit microcontroller with timers and AD converters etc....   But when it comes to actually coming up with something useful, I draw mostly a blank, besides some pretty simple stuff.   To me, (again, because of my limited imagination), it seems like overkill.

 

I do like the SMPS though,   I'm playing with the ATTiny85 and notice it has a dead time generator built in.   Seems to be made for SMPS work, but I did a search and found nothing on it.   So I may play with that a little later.

 

I do have a project I've sort of been working on, a water level sensor that turns on a pump (and off when there's no water).   One of those may work for that, two inputs and at least one output, preferably two.  (yeah, more than just a float switch).

 

Maybe that'll spark my imagination.

Just gettin' started, again....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello i just wanted ot update some progress. I did figure out the firmware from the usbasp programmer is incorrect. I did mange to update that firmware from here. But I'm back to the atmel studio part in the tools argument if I'm doing something wrong with that there. I did have  -c usbasp -p attiny10 -v -U flash:w:$(BinDir)\$(TargetName).hex:i  But i was told to change the -c to -C. I did that and now I get 

 

avrdude.exe: Version 5.10, compiled on Jul 17 2010 at 22:59:45
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "usbasp"
avrdude.exe: can't open config file "usbasp": No such file or directory
avrdude.exe: error reading system wide configuration file "usbasp"

 

So it looks lik now I'm getting a error from the config file error can not see that. What do i do about that. in the atmel studio. What I'm doing wrong. I have no clue never used atmel studio before. It is what I'm finding online nd youtube to try to figure this out.

 

 

Joseph

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wrong C

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Or more specifically:

-c programmer-id-c programmer-id-c programmer-id-c programmer-id

-C config file

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm using the same firmware; usbasp.2011-05-28. So that should be okay.

 

Is there a reason you are not using a more recent avrdude? I see that 5.1 supports the tiny10, but maybe something changed in a later version?

 

And are you able to run avrdude from a terminal ( console on windows ? ) to bypass Atmel Studio for diagnostics?

 

Finally, are you sure you have it wired correctly and that there are no other components attached to the chip?

 

I'm attaching the schematic I used to wire the programming pins on my setup.

 

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One more thing; I don't see the -P ( port ) being used in your example. Are you specifying a port for avrdude to look for the programmer?

 

On my mac I use -P usb which just works. I'm not sure how windows handles this but I'm pretty sure without a port assignment it won't work.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But if you say -c usbasp then the "port" is obviously USB anyway.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

USBASP does not need a -P argument.   It uses USB by default

The clue is in the name.

 

From memory,  you can say -Pusb or -Pcom1 or -Panything

 

From distant memory,  the Fischl 2011 firmware supports TPI but uses different pins to AVRISP-2, ATMEL-ICE, ...

 

Chinese USBASP firmware does not support TPI.

You need another programmer to change the firmware to fischl 2011 variety.

Once you have replaced the good Chinese firmware you are stuck with the 2011 firmware (because the Chinese firmware is lock-protected)

 

David.

Last Edited: Wed. Dec 16, 2020 - 06:28 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

May I suggest you get a real TPI programmer: https://www.olimex.com/Products/...

This will have native support in AS7 as well, no need to mess with external routines and params.

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Or buy SNAP, PicKit-4, ATMEL-ICE which will set you up forever and with every AVR, ARM, PIC target

 

These Tools are frequently "on-offer".   I think SNAP is currently on offer.

 

Mind you,  the Olimex is physically robust.   Likewise,  the USBASP with case is also robust.   (you just need to change the firmware)

 

No tools are much good if you don't have good ribbon cables and adapters.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello thank you very much for the information and help. Everyone has been a real help for me trying to figure this out. Here is what i know so far or what i have learned and figure out. 

 

I'm not a coder by any means I can change things around and search online figure somethings here and here but I'm coming from a hardware background. I'm learning and trying and i thank everyone for the help means a lot to me. 

 

I never used atmel studio before. I normally use Arduino IDE. I have never used a processor like this before or a tiny processor like the 10. The smallest i have used is the attiny84 and 85. I have opened atmel studios once before and really never tried it because it was overwhelming for me. I stuck with the Arduino IDE it was much for me easier for me to use. 

 

I searched online how to program the attiny10 from videos and different websites. I just posted what i have tired and failed at. 

 

My hardware is here.  I did mange to update hte firmware it took me sometime to figure out how to connect it to a arduino uno board because that is the other other micro processor i have. I was able to figure it out

 

AvrDude I was using a 5.1 something because that was what i saw in a few videos of people are using. Just as of an hour ago i did download the i believe is the latest one avrdude-6.3-mingw32.zip from here.

 

As for the wiring i found this site here. and  the image i went by was from the same site here. so i saw the one from  craig_hayes  he posted a screenshot that says to connect the MISO with a resistor to the MOSI pin. Not sure what one i need to use.

 

 

As far as the atmel studio part. I'm really unsure of the External tools part for the usbasp the commands and arduments. What i really need to put in there because i might be putting in the wrong information. Here is what i have in there so far. and it has failed.

 

commands: C:\avrdude\avrdude\avrdude.exe This is the 5.1 avrdude

Arguments: -C usbasp -p attiny10 -v -U flash:w:$(BinDir)\$(TargetName).hex:i

 

Other then that I'm not sure what is correct or not correct.

 

 

Joseph

 

P.s.s  I had this processors over almost 3 years ago i wanted to make some blinky lights with some CR2032 batteries for kids at my local church one year. That didn't last long the church burned down i had to move because of money problems. Where i moved to far from the church over 5 hours away plus i do not drive. Now i been seeing all these people working with this processor and i wanted to give it a try again.

Last Edited: Wed. Dec 16, 2020 - 10:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Seriously,   stick with the ATtiny85 or ATtiny84 if you want a small chip.

 

Develop your projects on a Uno or Nano.    Much easier with a single USB cable.

When it is working ok,  rebuild for a Tiny85 or whatever.

 

You still don't understand the switches and arguments in the avrdude command line.   Read the docs for -c and -C

You would need to reprogram firmware in the USBASP for TPI chips.   This requires correct command too.

 

Yes,  it is an interesting challenge to squeeze a project into a tiny2313 or tiny25.    It is the sort of academic exercise that needs a bit of experience first.

 

In practical terms.    Nano and Uno clones are very cheap.    Probably cheaper than buying a tiny85 board.    I would get Uno projects working first.    Then you can post the working Uno project if you need help with porting it to tiny85 or tiny10.

 

Yes,  I have a tiny4, 5, 10 on DIP adapters.   I never really played with them seriously.

If you have an interesting challenge,  readers might actually have a go.

 

David.

Last Edited: Wed. Dec 16, 2020 - 11:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello thanks for the reply back. I don't have any attiny84, or 85. I have 100 of these attiny10 And Would love to do something with them. I'm looking into the arguments now. That is my last probem. I'm working on it.

 

 

 

Joseph

Last Edited: Wed. Dec 16, 2020 - 11:51 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hello here is a update. I did change the commands to C:\avrdude-6.3-mingw32\avrdude.exe and the Arguments to -C C:\avrdude-6.3-mingw32\avrdude.conf  -p attiny10 -c usbasp -v -U flash:w:$(BinDir)\$(TargetName).hex:i the commands and i got this. 

 


avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2014 Joerg Wunsch

             System wide configuration file is "C:\avrdude-6.3-mingw32\avrdude.conf"

             Using Port                    : usb
             Using Programmer              : usbasp
             AVR Part                      : ATtiny10
             Chip Erase delay              : 0 us
             PAGEL                         : P00
             BS2                           : P00
             RESET disposition             : dedicated
             RETRY pulse                   : SCK
             serial program mode           : yes
             parallel program mode         : yes
             Timeout                       : 0
             StabDelay                     : 0
             CmdexeDelay                   : 0
             SyncLoops                     : 0
             ByteDelay                     : 0
             PollIndex                     : 0
             PollValue                     : 0x00
             Memory Detail                 :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               signature      0     0     0    0 no          3   16      0     0     0 0x00 0x00
               fuse           0     0     4    0 no          1   16      0     0     0 0x00 0x00
               calibration    0     0     0    0 no          1   16      0     0     0 0x00 0x00
               lockbits       0     0     0    0 no          1   16      0     0     0 0x00 0x00
               flash          0     0   128    0 no       1024   16      0     0     0 0x00 0x00

             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e9003 (probably t10)
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
             To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "c:\users\jjcsystems\Documents\Atmel Studio\7.0\GccApplication8\GccApplication8\Debug\GccApplication8.hex"
avrdude.exe: writing flash (46 bytes):

Writing | ################################################## | 100% 0.17s

avrdude.exe: 46 bytes of flash written
avrdude.exe: verifying flash memory against c:\users\jjcsystems\Documents\Atmel Studio\7.0\GccApplication8\GccApplication8\Debug\GccApplication8.hex:
avrdude.exe: load data flash data from input file c:\users\jjcsystems\Documents\Atmel Studio\7.0\GccApplication8\GccApplication8\Debug\GccApplication8.hex:
avrdude.exe: input file c:\users\jjcsystems\Documents\Atmel Studio\7.0\GccApplication8\GccApplication8\Debug\GccApplication8.hex contains 46 bytes
avrdude.exe: reading on-chip flash data:

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

avrdude.exe: verifying ...
avrdude.exe: 46 bytes of flash verified

avrdude.exe done.  Thank you.

 

 

So I'm guessing that was a cuccess?

 

 

Joseph

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Looks like success to me!  Does it blink?
 

 

Note that a SNAP programmer will have no chance (probably) of doing HV programming, should you want the extra IO.

I'd much rather expend the effort to finding/writing an "Arduino TPI" sketch, so at least I'd have the ability to add features (in fact, I did something like that for programming an even nastier chip (ATtiny28 - HV Parallel programming only, and not in the current AS Studio list of supported devices.)

 

 

stick with the ATtiny85 or ATtiny84 if you want a small chip.

These days you'd probably be better off with one of the newer Tiny-0 or Tiny-1 chips.  Attiny402 (8pins) or ATtiny1614 (14 pins) Cheaper, more peripherals, and capable of supporting a bootloader.
(no really low-pin-count packages, nor DIPs, nor 8k 8pin parts.  OTOH, there are also "biigger" AVRs in smaller packages, like the ATtiny816, in 3x3mm QFN.)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

on sale this month :

MCP1012 1W Evaluation Board

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

josephchrzempiec wrote:

Hello here is a update. I did change the commands to C:\avrdude-6.3-mingw32\avrdude.exe and the Arguments to -C C:\avrdude-6.3-mingw32\avrdude.conf  -p attiny10 -c usbasp -v -U flash:w:$(BinDir)\$(TargetName).hex:i the commands and i got this. 

 

<snip>

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e9003 (probably t10) 

<snip>

 

 

So I'm guessing that was a cuccess?

 

The very first sign of success with avrdude is when it reports a device ID.  The subsequent programming and verification shows that avrdude found your hex input, wrote it to the target and managed to successfully read the flashed contents back from the device and verified it is the same as the original input.  So yes, the programming step is finally working!

 

Note that I also like the challenge of making something with the low end controllers, it is quite satisfying to realize you don't need a bunch of code to perform useful functions.  The advice to move to a more capable controller is probably driven by needs other than curiosity, such as reusing familiar controllers to save on development time or to cater for feature creep that later on in a project require more resources (more pins, memory, timers, etc.).