a timer that goes logic high or low every 15mins ( using tiny85 chip)

LesJones

Joined Jan 8, 2017
4,511
I thought I would try to program my .hex file into a ATtiny 85using an Arduino uno as a programmer. (I normally use a USBasp programmer as they are so cheap.)
I found at first it did not work. Averdude did not recognise the arduino as a programmer. Many web searches did not give ALL the steps required to make it work.
Here are some notes that I made after getting it to work , These may help you.
-------------------------------------------------------------

Getting the arduino to work as a programmer
See this link
https://www.digikey.co.uk/en/maker/...lash-the-arduino-bootloader-to-an-attiny85-ic

In arduino IDE.
Under "File" select Preferences.
Paste into the box marked "Additional Board Manager URLs" this url
https://raw.githubusercontent.com/d...ds-manager/package_damellis_attiny_index.json
Then click on the small square symbol to the right of this box.
Click on OK

Under "Tools" click on Programmer
select Arduino as ISP
I think it will now let you program a bootloader into a ATtiny85.


Now to get it to work with Avrdude
See this link.
https://forum.arduino.cc/t/what-avrdude-arguments-do-i-need-to-use-the-arduinoisp-programmer/514563
It tells you how to get AVRdude to recognise the arduino as a programmer.


-------------------------------------------------------------

Les.
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
I thought I would try to program my .hex file into a ATtiny 85using an Arduino uno as a programmer. (I normally use a USBasp programmer as they are so cheap.)
I found at first it did not work. Averdude did not recognise the arduino as a programmer. Many web searches did not give ALL the steps required to make it work.
Here are some notes that I made after getting it to work , These may help you.
-------------------------------------------------------------

Getting the arduino to work as a programmer
See this link
https://www.digikey.co.uk/en/maker/...lash-the-arduino-bootloader-to-an-attiny85-ic

In arduino IDE.
Under "File" select Preferences.
Paste into the box marked "Additional Board Manager URLs" this url
https://raw.githubusercontent.com/d...ds-manager/package_damellis_attiny_index.json
Then click on the small square symbol to the right of this box.
Click on OK

Under "Tools" click on Programmer
select Arduino as ISP
I think it will now let you program a bootloader into a ATtiny85.


Now to get it to work with Avrdude
See this link.
https://forum.arduino.cc/t/what-avrdude-arguments-do-i-need-to-use-the-arduinoisp-programmer/514563
It tells you how to get AVRdude to recognise the arduino as a programmer.


-------------------------------------------------------------

Les.
thanks for that i did get my to work i posted a video a few posts back. i haven;t firgure out how to do hex files. yet i think the windows version of avrdude does hex files but i haven't play around with that yet.
 

LesJones

Joined Jan 8, 2017
4,511
When you say " the windows version of avrdude " do you mean eXstreme Burner-AVR ? If so I did not get it to work with the aduino as a programmer. (Or have you found another program ?)

Les.
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
There is a Windows version of avrdude I haven't tried it yet so i don't know if it will work it, and it has ALOT of programmers to selected from. Here is a screenshot of the program I am talking about
 

Attachments

Thread Starter

timtim1234

Joined Nov 30, 2023
246
Also during my research it sounds like by setting a "fuse value" the chip can't be read!! I am not sure what value or if this is true
 

MrChips

Joined Oct 2, 2009
34,828
Also during my research it sounds like by setting a "fuse value" the chip can't be read!! I am not sure what value or if this is true
A fuse is just that, a fuse. It is either ON or OFF, i.e. intact or broken.
Once broken, it cannot be rejoined. You have to check the documentation to see the meaning of "value", 0 or 1, ON or OFF.
How is "intact" and "blown" represented, is it 0 or 1?

In some cases, the fuse is reversible. You need to read which are and which are not.

When they say "value" they are also referring to a collection of fuse bits in one byte.
Hence the Low Fuse value would be an 8-bit value. Again read the documentation.
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
A fuse is just that, a fuse. It is either ON or OFF, i.e. intact or broken.
Once broken, it cannot be rejoined. You have to check the documentation to see the meaning of "value", 0 or 1, ON or OFF.
How is "intact" and "blown" represented, is it 0 or 1?

In some cases, the fuse is reversible. You need to read which are and which are not.

When they say "value" they are also referring to a collection of fuse bits in one byte.
Hence the Low Fuse value would be an 8-bit value. Again read the documentation.
yes, that is what I thought, but the fuse value must be doing that? And truth be told no i haven't dug deep into the fuse setting, I was just seeing if anyone knows of this and have they played with the setting if so what happenes, etc? i would assume the chips works just fine, meaning the code you have on there works, but you can't read or program it??
 

MrChips

Joined Oct 2, 2009
34,828
yes, that is what I thought, but the fuse value must be doing that? And truth be told no i haven't dug deep into the fuse setting, I was just seeing if anyone knows of this and have they played with the setting if so what happenes, etc? i would assume the chips works just fine, meaning the code you have on there works, but you can't read or program it??
No. That is not true.
Fuse settings are user options that the manufacturer has provided for you to choose.
The value of the fuse setting will determine the functional and operational status of the MCU.
You need to read about this and choose the fuse setting carefully. The default fuse setting might not be suitable for your application.
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
No. That is not true.
Fuse settings are user options that the manufacturer has provided for you to choose.
The value of the fuse setting will determine the functional and operational status of the MCU.
You need to read about this and choose the fuse setting carefully. The default fuse setting might not be suitable for your application.
Ok, I will check it out. I do know that using pin 1 as an output pin on the tiny85 does require a fuse change, but doing so will disable ISP programming. I would assume other programming ways would still work i.e HVP?? Anyway thanks for the info
 

be80be

Joined Jul 5, 2008
2,395
One you can fix the fuse with a arduino as isp i posted how to do that.
The chips programmed are done with low voltage. To fix fuses you need
high voltage on reset to set for flashing fuses.

Avrdudless is not avrdude its a front end or app to use avrdude it has a fuse calculator but make sure you set them right
or you'll need a high voltage programmer to fix your chips
the first time i ever did this about 12 years ago i burnt the uno bootloader in a mega chip bad day
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
One you can fix the fuse with a arduino as isp i posted how to do that.
The chips programmed are done with low voltage. To fix fuses you need
high voltage on reset to set for flashing fuses.

Avrdudless is not avrdude its a front end or app to use avrdude it has a fuse calculator but make sure you set them right
or you'll need a high voltage programmer to fix your chips
the first time i ever did this about 12 years ago i burnt the uno bootloader in a mega chip bad day
Ok, I didn't know that about the avrdudless good to know. So can a person make a tiny85 not readable, but the chip still works with code on it?
 
Top