AVR-Programmer icon indicating copy to clipboard operation
AVR-Programmer copied to clipboard

A strange upload error.

Open nehcoab opened this issue 1 year ago • 4 comments

Hi, Stefan. I encountered a very strange error.

I programmer an ATTINY13A-SSU with MicroCore use your AVR Programmer Adapter Maxi. When I set the clock to '1.2 Mhz internal osc', everything works fine. However, when I switch to '8 MHz external clock', it works the first time, but then it never works again, I mean that an upload error occurred, no matter what the clock is set to. This means that this MCU is no longer able to be programmed. I tried several MCUs, and the same issue occurred with all of them. On one occasion, even when I set the clock to '1MHz external clock', it worked the first time too, but then it failed every time after that. I noticed that the 8MHz resonator I purchased is blue, while the one in your picture is brown. I'm not sure if this has anything to do with it.

I've included the error message below for your reference:

Sketch uses 328 bytes (32%) of program storage space. Maximum is 1024 bytes.
Global variables use 1 bytes (1%) of dynamic memory, leaving 63 bytes for local variables. Maximum is 64 bytes.
avrdude error: cannot set sck period; please check for usbasp firmware update
avrdude error: program enable: target does not answer (0x01)
avrdude error: initialization failed, rc=-1
        - double check the connections and try again
        - use -B to set lower ISP clock frequency, e.g. -B 125kHz
        - use -F to override this check

Failed programming: uploading error: exit status 1

Any help you can provide would be greatly appreciated.

Thank you!

nehcoab avatar Jun 06 '24 10:06 nehcoab

Hi, the ATtiny13A does not support an external oscillator, it needs an external clock signal on pin PB3 (CLKI). In order to unbrick your chips you have either to provide the clock signal (let's say a 1MHz square wave) on PB3 while reprogramming, or you need a high-voltage serial programmer, e.g. https://github.com/wagiminator/ATtiny84-TinyHVSP.

wagiminator avatar Jun 06 '24 11:06 wagiminator

Thank you for the solution provided, I will attempt to unbrick my chips accordingly, and I will return to provide feedback on the results.

nehcoab avatar Jun 06 '24 11:06 nehcoab

Hi, the ATtiny13A does not support an external oscillator, it needs an external clock signal on pin PB3 (CLKI). In order to unbrick your chips you have either to provide the clock signal (let's say a 1MHz square wave) on PB3 while reprogramming, or you need a high-voltage serial programmer, e.g. https://github.com/wagiminator/ATtiny84-TinyHVSP.

Great, I made the TinyHVSP, my chips are worked.

iss10

nehcoab avatar Jun 16 '24 05:06 nehcoab

;-)

wagiminator avatar Jun 16 '24 07:06 wagiminator