[SOLVED]IDE not able to compile for attiny?

Hello,

i am trying to program for the attiny with the arduino IDE.
It seems that the arduino IDE is not supporting the direct programming of an attiny?

I do it with a avr isp shield. Therefore if have to update the boards.txt config file. But when i run the ide, it complains, that arduino.h can't find the "pins_arduino.h" and when i copy it to the directory, the IDE throws even more error messages like:

In file included from /Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Arduino.h:235,
                 from Blink.ino:18:
/Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.h:98: error: 'pins_MISO' was not declared in this scope
/Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.h:99: error: 'pins_MOSI' was not declared in this scope
/Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.h:100: error: 'pins_SCK' was not declared in this scope
/Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.h:101: error: 'pins_SS' was not declared in this scope
/Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.h:102: error: 'pins_SDA' was not declared in this scope
/Users/asd/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.h:103: error: 'pins_SCL' was not declared in this scope

There are many questions on the net but most of them are dealing with programming over an arduino (uno) or something, very few about the direct programming over usbasp for example.

Can someone point to the right direction?

regards

I think it's the program itself that is not compatible with the ATTiny85 - perhaps you're trying to use features or libraries that are only compatible with ATmega328 (i.e. Arduino)

Hello,

the libraries and features of the attinys are somehow a subset of the bigger cpus. But in the newer IDEs it seems that they have forgotten the pinout definitions for the attinys, so it is only a question off missing definitions. Some people on the net have already solved the problems with older IDEs some times ago but these solutions doesn't fit on the newer IDE 1.06.

So i am trying to update the definitions files, i already updated the board definitions file so that the IDE can find now the boards and is able for example to flash the boot loader, but the IDE still does not compile because of missing definitions for the pinout of the attiny.

regards

Hello,

i´ve found the solution.

It seems, as if the arduino IDE is somehow not suporting some cpu´s. While it is able to manager the attinys, it seems, as if the configuration for those cpus are somehow lost, i don´t know. I´ve tried for long time, and now i have worked out a solution that worked for me. (it is a combination of several attempts and description found in the net)

  • I´ve downloaded https://github.com/damellis/attiny/archive/master.zip
  • i created in the arduino directory a folder named "hardware"
  • Unzipp the "master.zip" and copy the "attiny" folder inside it to the installed arduino/hardware directory
  • Find or download the "board.def" file and copy it to the arduino install directory
  • find the pins_arduino.h file
  • Edit it and find the row, where BOARD_DEF is defined
  • correct the line where it is defined from #define BOARD_DEF "board.def" to the CORRECT location of "board.def"
  • restart the arduino IDE

And now, i can compile and upload a program to the attiny.

regards

I didn't know this issue existed with newer IDE versions. Thanks for sharing the solution!