A
A
Artem Kirsov2021-03-14 13:43:42
Arduino
Artem Kirsov, 2021-03-14 13:43:42

Error uploading sketch to Arduino Nano?

Good day!
Bought 2 Arduino Nano boards from China to play with. Installed drivers for CH340, installed Arduino IDE (1.8.13). On one board, we were able to successfully upload the simplest sketch (Blink) of flashing a light bulb. When loading it on the second board, it gives such an error. I changed the bootloader type, the port is correct. Maybe the board is wrong?

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

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM5
         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\Artur\AppData\Local\Temp\arduino_build_180171/sketch_led2.ino.hex"
avrdude: writing flash (934 bytes):

Writing | avrdude: stk500_recv(): programmer is not responding
################################################## | 100% 14.43s

avrdude: 934 bytes of flash written
avrdude: verifying flash memory against C:\Users\Artur\AppData\Local\Temp\arduino_build_180171/sketch_led2.ino.hex:
avrdude: load data flash data from input file C:\Users\Artur\AppData\Local\Temp\arduino_build_180171/sketch_led2.ino.hex:
avrdude: input file C:\Users\Artur\AppData\Local\Temp\arduino_build_180171/sketch_led2.ino.hex contains 934 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.24s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0080
         0x04 != 0x25
avrdude: verification error; content mismatch

avrdude done.  Thank you.

выбранный последовательный порт 
 не существует или плата не подключена к нему

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2021-03-15
@Artur3194

Yes, it looks like he does not see your port:
"Writing | avrdude: stk500_recv(): programmer is not responding"
"The selected serial port
does not exist or the board is not connected to it"

A
Armenian Radio, 2021-03-14
@gbg

Judging by the abuse, verification (comparison of the recorded with the standard) does not pass. You can try to lower the clock rate when bitbang or throw out the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question