ATTiny10, Failed programming: uploading error: exit status 0xc0000005

I am having a problem uploading to an ATTiny10 in the following environment:

Using Arduino version 2.3.4
Using attiny10core from GitHub - technoblogy/attiny10core: For programming the ATtiny10/9/5/4.
Using USBASP programmer

The attached transcript ( included below ) shows:

  1. Blink sketch compiles without error
  2. AVRDude programs and verifies flash
  3. Upload fails with "Failed programming: uploading error: exit status 0xc0000005"

The fact that avrdude can program and verify the flash seems to indicate the wiring is correct.
The compiled program does not exceed the resources in the device.
It is not clear to me why the upload is failing?

Multiple searches for this same status code have not provided any helpful results.
Any insight regarding how to pursue this failure would be greatly appreciated.

The Arduino transcript output is below:

Sketch uses 66 bytes (6%) of program storage space. Maximum is 1024 bytes.
Global variables use 0 bytes (0%) of dynamic memory, leaving 32 bytes for local variables. Maximum is 32 bytes.
"C:\Users\kgplo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14/bin/avrdude" "-CC:\Users\kgplo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf" -v -pattiny10 -cusbasp -Pusb "-Uflash:w:C:\Users\kgplo\AppData\Local\arduino\sketches\3578B6D5F0148A399ACBD79EC88F1136/Blink.ino.hex:i"

avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\kgplo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf"

     Using Port                    : usb
     Using Programmer              : usbasp
     AVR Part                      : ATtiny10
     Chip Erase delay              : 0 us
     PAGEL                         : P00
     BS2                           : P00
     RESET disposition             : dedicated
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 0
     StabDelay                     : 0
     CmdexeDelay                   : 0
     SyncLoops                     : 0
     ByteDelay                     : 0
     PollIndex                     : 0
     PollValue                     : 0x00
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       signature      0     0     0    0 no          3   16      0     0     0 0x00 0x00
       fuse           0     0     4    0 no          1   16      0     0     0 0x00 0x00
       calibration    0     0     0    0 no          1   16      0     0     0 0x00 0x00
       lockbits       0     0     0    0 no          1   16      0     0     0 0x00 0x00
       flash          0     0   128    0 no       1024   16      0     0     0 0x00 0x00

     Programmer Type : usbasp
     Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "C:\Users\kgplo\AppData\Local\arduino\sketches\3578B6D5F0148A399ACBD79EC88F1136/Blink.ino.hex"
avrdude: writing flash (66 bytes):

Writing | ################################################## | 100% 0.32s

avrdude: 66 bytes of flash written
avrdude: verifying flash memory against C:\Users\kgplo\AppData\Local\arduino\sketches\3578B6D5F0148A399ACBD79EC88F1136/Blink.ino.hex:
avrdude: load data flash data from input file C:\Users\kgplo\AppData\Local\arduino\sketches\3578B6D5F0148A399ACBD79EC88F1136/Blink.ino.hex:
avrdude: input file C:\Users\kgplo\AppData\Local\arduino\sketches\3578B6D5F0148A399ACBD79EC88F1136/Blink.ino.hex contains 66 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.06s

avrdude: verifying ...
avrdude: 66 bytes of flash verified

avrdude done. Thank you.

Failed programming: uploading error: exit status 0xc0000005

Did you test if your led blinks? I always get an error message with uploading Attiny10core, but it works just fine.

I use IDE 1.8.19 btw

(my upload log)


avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "E:\Arduino\arduino-1.8.19\portable\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : usbasp
         AVR Part                      : ATtiny10
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3   16      0     0     0 0x00 0x00
           fuse           0     0     4    0 no          1   16      0     0     0 0x00 0x00
           calibration    0     0     0    0 no          1   16      0     0     0 0x00 0x00
           lockbits       0     0     0    0 no          1   16      0     0     0 0x00 0x00
           flash          0     0   128    0 no       1024   16      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "C:\Users\Hans\AppData\Local\Temp\arduino_build_957317/sketch_feb07a.ino.hex"
avrdude: writing flash (46 bytes):

Writing | ################################################## | 100% 0.23s

avrdude: 46 bytes of flash written
avrdude: verifying flash memory against C:\Users\Hans\AppData\Local\Temp\arduino_build_957317/sketch_feb07a.ino.hex:
avrdude: load data flash data from input file C:\Users\Hans\AppData\Local\Temp\arduino_build_957317/sketch_feb07a.ino.hex:
avrdude: input file C:\Users\Hans\AppData\Local\Temp\arduino_build_957317/sketch_feb07a.ino.hex contains 46 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.02s

avrdude: verifying ...
avrdude: 46 bytes of flash verified

avrdude done.  Thank you.

An error occurred while uploading the sketch
1 Like

Hi Hans, thank you for your suggestion. I hadn't even added the LED to the circuit yet since I thought the tool was telling me the load had failed, but based on your information I added the LED and sure enough, it blinks as expected. Thanks again!!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.