I’m trying to upload basic blink code to attiny85 using a cheap USBasp programmer (from China).
Here is my platfomio.ini config :
[env:attiny85] platform = atmelavr board = attiny85 framework = arduino board_build.f_cpu = 1000000L upload_protocol = usbasp upload_flags = -Pusb -v
It does not work. Error messages is :
avrdude: error: program enable: target doesn't answer. 1 avrdude: initialization failed, rc=-1
If I use ‘-F’ option, avrdude complains about bad signature of the chip ?!
I’ve tried Arduino IDE to program attiny85 (using ATtinyCore) and I was able to succesfully program it several time (to change delays for example).
Any help appreciated.