Verbose output from uploading:
Sketch uses 926 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Users\Ales\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Ales\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b57600 -D -Uflash:w:C:\Users\Ales\AppData\Local\Temp\arduino_build_761716/Blink.ino.hex:i
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Ales\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\Ales\AppData\Local\Temp\arduino_build_761716/Blink.ino.hex"
avrdude: writing flash (926 bytes):
Writing | avrdude: stk500_recv(): programmer is not responding
################################################## | 100% 12.95s
avrdude: 926 bytes of flash written
avrdude: verifying flash memory against C:\Users\Ales\AppData\Local\Temp\arduino_build_761716/Blink.ino.hex:
avrdude: load data flash data from input file C:\Users\Ales\AppData\Local\Temp\arduino_build_761716/Blink.ino.hex:
avrdude: input file C:\Users\Ales\AppData\Local\Temp\arduino_build_761716/Blink.ino.hex contains 926 bytes
avrdude: reading on-chip flash data:
Reading | #########################Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
######################### | 100% 0.22s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x0c
avrdude: verification error; content mismatch
avrdude done. Thank you.
Board is set to "Arduino nano"
Processor to "AtMega328P (Old bootloader)"
COM is set to "COM4". Windows shows COM4 as USB-SERIAL CH340
My board is Arduino nano with Atmega328P-AU processor and CH340G chip.
It was working correctly until now. While uploading code, led 13 blinks 3 times fast, then it periodicaly blinks (every second) until rx and tx leds start to blink (for very short time), and then led 13 starts to periodicaly blink again. Sometimes when I hold reset button I manage to upload code.
What I tried: Reinstalling ide, downgrading board library to older versions, trying different usb ports, restarting pc, changing processor to atmega328p with new bootloader
What could be wrong?
Edit:
I tried uploading from phone, same problem. So its not related to my pc.
Arduino is disconnected from circuit, TX and RX are not connected to anything.
Tried loopback test. I did received my message back.