I accidently changed my ATtiny45 clock source to 128khz . After that I can't program it . I tried avrdude in terminal mode but it doesn't work .
>>avrdude -P COM4 -c avrisp -b 19200 -p t45 -t -F -u
(I'm using Arduino as ISP for programming)
How can I fix it ?
Best Answer
The ISP frequency can be up to 1/4 of the core clock so you must set you programmer to work at lower frequency. For 128KHz core clock the ISP can be up to 32KHz.
Use the -B flag of avrdude, try
-B250
( 4kHz)If Arduiono ISP doesn't support that flag and you don't have any other programmer available you can use this ArduinoISP firmware that supports low speed chip erase and fuse burning.