Closed colesnicov closed 6 years ago
This issue appears to be because ArduinoISP sketch uses a function with the same name as the internal software serial Serial supplied with this core, getch() - this can be fixed easily (find/replace getch in the sketch with some other name), and I'll consider renaming the function in the internal software serial implementation.
What on earth are you trying to do, though?! It looks like you're compiling ArduinoISP to run on the tiny85 - but the tiny85 doesn't have enough pins for that (you need the three SPI pins, two serial pins, and the pin connected to reset of the target) unless you blew the RSTDSBL fuse. Also, IIRC, the ArduinoISP sketch comes out larger than 8k (not at a system with the IDE on it to check atm), and I'm not sure it works with software serial implementations either!
Usually people put ArduinoISP onto their '328p based arduinos, and use it to upload to their attiny's - not the other way around, which is what you seem to be trying to do.
If I use SoftwareSerial on pines (PB3, PB4), SPI (PB0, PB1, PB2) and RESET (PB5).
As for the size of the compiled sketch, so without SoftwareSerial it is about 4.5kb.
_______
PB5-| A |-VCC
PB3-| T |-PB2
PB4-| 8 |-PB1
GND-| 5 |-PB0
------------
So i try to find / replace :)
I'll let you know if I did it
Hello. I'm trying to compile a standard example ArduinoSPI because I can program the ATMEGA328 with the help attiny85 but I get the following error: