ATTiny support in 1.6.0

I was having problems with 1.6, partly because I didn't realize what they had done to the hardware folder.

It is probably in some readme file somewhere, but there are a couple of important points:

  • If you have some older board files (eg. for the 1284 chip) the folder that used to work won't work now unless you make an extra level of folders named "avr" and put the files into that.
  • You need to follow the instructions about copying entries from Prospective Boards.txt to boards.txt for the "tiny" download. I'm guessing they did that because there were so many different settings the menu became unwieldy.

If you don't do those things the new chips will stubbornly refuse to appear in the menu.

I stumbled around for several days trying to program an ATTiny85 and finally came across this site. I used Hackscribble's software and after a few more stumbles I got it to work and it works great on a Attiny85@1MHZ. I tried to burn the bootloader to get 8MHZ and got this error:

avrdude: invalid byte value (bootloader.unlock_bits) specified for immediate mode
avrdude: read from file 'bootloader.unlock_bits' failed
Error while burning bootloader.

I have tried many things but had no luck.
I am using a UNO as a isp programmer and do have the board set at ATting85 @ 8MHZ...
and programmer set at Arudino as ISP (IDE 1.6)

any help would be greatly appreciated.

Do it my way:

Nice!

Dear all, I'm using the Attiny software For Arduino 1.6: ide-1.6.x.zip from

and this is the only that works well for Attiny 45, 85, 44 and 84, and that's perfect,

of course I can see some messages saying that some libraries will not work with those processors but I can understand it, and this is not a big problem, as said this software works, you can compile an existing sketch without problems,

my problem comes because I need to program Attines 2313 and 4313, under Arduino 1.6, does you know where to find the appropriate software?

Regards:

JME

Dear all, finally I'm trying with the software recommended by Common_ground, and everything works fine,

the sketch is shorter in memory consumption, and I'm loading something that was not possible before, on an Attiny 2313,

thanks Common_ground, and thanks to all the others, this is working now, placing the contents of prospective boards inside boards.txt

Regards:

JME

Hello:

Have a question about the setup. I installed 1.6.2 on the PC today and installed arduino-tiny (with patches for 1.6 earlier in this thread). I can select ATtiny85, and when I compile a sample code, I get the error

"Cannot run program "C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++": CreateProcess error=2, The system cannot find the file specified"

When I switch the board to Arduino Uno, compilation works fine. So the above errors appears only for ATtiny boards.

Do I need to install WinAVR manually under {Sketchfolder}\hardware\tools\avr?

I installed Arduino as 'Admin' and use the PC other a separate userid with 'regular' rights.

/sdo

Fixed (probably not compatible with versions prior to 1.6.2)...

I followed the instructions on http://highlowtech.org/?p=1695 . Now the IDE won't launch and I get a "Launch4j" error. I have no idea where the hardware folder with the attiny stuff has gone, I can't find or delete it. How do I get the IDE working again and what went wrong?

Edit. I'm using 1.6.2

common_ground:
P.S.
And just discovered that EEPROM folder must be copied ...

Thanks! Thought fixing that issue was going to be far more difficult when none of my ATtiny code using EEPROM was compiling.

Geoff

--_:
I followed the instructions on High-Low Tech – Programming an ATtiny w/ Arduino 1.6 (or 1.0) . Now the IDE won't launch and I get a "Launch4j" error. I have no idea where the hardware folder with the attiny stuff has gone, I can't find or delete it. How do I get the IDE working again and what went wrong?

Edit. I'm using 1.6.2

Hi

I can't speak for the highlowtech cores since it's been so long since I've had them installed, however I can say you'll get to the functionality you need by using the TinyCore1 link above that Coding Badly mentioned. You sound like you've broken something crucial, so might be worth de- and re-installing the IDE to start afresh first.

Cheers!
Geoff

Thanks. I got it working with the TinyCore1 files after I reinstalled the IDE. My next problem was that the Attiny24 didn't have a 8MHz (internal) -option, but I was able to create one in boards.txt by modifying the Attiny25 / 8MHz entry. :slight_smile:

...

Hello!

I had some trouble in the past using attiny 45 with the IDE 1.63 and now i am reading about the "new cores" and the install procedure.
I can tell it works for the "standart" written funktions! Bouth, the tiny-master and the 1.6zip works in the same way, but with other "install-procedures".

Thanks Guys for this Cores and the efforts about that!!!!!

But! What the Problem is for my projekt, the tone() Funktion, does not work!!

I tryt some simple "blink" Sketch to load to the Attiny and ist run fine. I upload them with a DIAMEX-AVR ISP and extra Entries in the avr programmer.txt and its work fine, but not the tone () library!!

Have somebody any ideas??

Thanks!

Thanks. I got it working with the TinyCore1 files after I reinstalled the IDE. <<<

Thats exact the core i use to, cause we can edit the boards. But i test the 1.6 before and for thw attiny45 they will also work.

But! without tone()!

Actually, I had some similar problems, too. I tried the "Hello world" LCD example on the Attiny24 and it worked, but the line which was supposed to count the seconds since the last reset, was messed up. I think the millis() -command doesn't work.

I think the millis() -command doesn't work. <

Yes ! I think to! The Attiny Strukture from the Timer are different to the Atmega.
But i read that some Attiny Cores for IDE 1.0x work for tone() and I hoped the Problem was fixed also in IDE 1.6x !
It seems to be only a wish.

--_:
I think the millis() -command doesn't work.

What specifically? Can you provide a code example please?

Geoff

xxxlshark:
But! What the Problem is for my projekt, the tone() Funktion, does not work!!

Just tested with a t84. Works fine.

common_ground:
And just discovered that EEPROM folder must be copied from :

Is the error similar to this...

Topic_299759.ino:1:20: fatal error: EEPROM.h: No such file or directory
compilation terminated.
Error compiling.

Yes that's what I was seeing when target board was changed to any of the tiny series.

Cheers, Geoff