I'm trying to upload a hex file to an ATtiny45 with an Arduino. I uploaded the Arduino ISP sketch to my board. I connected the ATtiny as shown below:
Then I go to CMD and type:
avrdude -c avrisp -p t45 -b 19200 -P COM6 -U flash:w:main.hex:i
And it gives me this error:
Please define PAGEL and BS2 signals for ATtiny45!
I double checked the connections and i tried to uplad a bootloader with Arduino IDE as written in this article: Programming Hex-code on an Attiny85 with the Arduino. I can uplad sketches with ArduinoIDE with no error.