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:
- Blink sketch compiles without error
- AVRDude programs and verifies flash
- 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