Проблемы с загрузкой скетча

Ардуино Уно не хочет сохранять скетч. В редакторе пишет Done uploading, но всё равно выполняется предыдущий скетч. После загрузки мигает один раз TX.

а что так бывает?

Видимо, бывает

То-есть схемы, скетча, версии IDE и всего остального не будет?

@LeoArsik

Выложите сообщение компилятора и загрузчика ПОЛНОСТЬЮ.
Не надо выкладывать скриншоты, скопируйте ошибки как текст (в Ардуино ИДЕ есть специальная кнопка - “Скопировать сообщение об ошибке”) и вставьте в форум, используя теги кода.

/usr/local/bin/arduino-cli compile --fqbn arduino:avr:uno --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/270402379/build --build-path /tmp/arduino-build-D33C3E1F0AD180DB054B9EB3B2B69189 /tmp/270402379/sketch_jan3a

Sketch uses 1626 bytes (5%) of program storage space. Maximum is 32256 bytes.

Global variables use 192 bytes (9%) of dynamic memory, leaving 1856 bytes for local variables. Maximum is 2048 bytes.

Upload started

Programming with: Serial

Flashing with command:C:/Users/228a/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude.exe -CC:/Users/228a/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:/Users/228a/AppData/Local/Temp/arduino-create-agent941550419/sketch_jan3a.hex:i

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:/Users/228a/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf”

Using Port : COM3

Using Programmer : arduino

Overriding Baud Rate : 115200

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: 3

Firmware Version: 4.4

Vtarget : 0.3 V

Varef : 0.3 V

Oscillator : 28.800 kHz

SCK period : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f (probably m328p)

avrdude: safemode: lfuse reads as 0

avrdude: safemode: hfuse reads as 0

avrdude: safemode: efuse reads as 0

avrdude: reading input file “C:/Users/228a/AppData/Local/Temp/arduino-create-agent941550419/sketch_jan3a.hex”

avrdude: writing flash (1626 bytes):

Writing | ################################################## | 100% 0.21s

avrdude: 1626 bytes of flash written

avrdude: verifying flash memory against C:/Users/228a/AppData/Local/Temp/arduino-create-agent941550419/sketch_jan3a.hex:

avrdude: load data flash data from input file C:/Users/228a/AppData/Local/Temp/arduino-create-agent941550419/sketch_jan3a.hex:

avrdude: input file C:/Users/228a/AppData/Local/Temp/arduino-create-agent941550419/sketch_jan3a.hex contains 1626 bytes

avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.21s

avrdude: verifying …

avrdude: verification error, first mismatch at byte 0x0000

0x62 != 0x0c

avrdude: verification error; content mismatch

avrdude: safemode: lfuse reads as 0

avrdude: safemode: hfuse reads as 0

avrdude: safemode: efuse reads as 0

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done. Thank you.

Это выдаёт онлайн редактор. Arduino IDE 2.0.3 в принципе не выдаёт ошибок и говорит об успешной загрузке скетча.

Схемы не существует. Просто в качестве теста вывод в Serial Monitor.

void setup() 
{
  Serial.begin(9600);
}
 
void loop() 
{
  Serial.println("test");
  delay(1000);
}

Но в Serial Monitor всё равно показывает то, что должен был показывать прошлый скетч.

а что это?

И уточните, что за плата? Уно? Нано?

Arduino UNO

А если попробовать ардуино ИДЕ старых версий - 1.8 или 1.9 ?

а теперь держишь клавишу резет и только когда начнет зашивать (после компиляции) отпускаешь

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Failed uploading: uploading error: exit status 1

при использовании вашего совета

Поменять кабель для начала. Посмотреть какой порт даёт система.

не, не то и не другое. Если бы было что-то с коннектом - сигнатура чипа не читалась бы.

Тут или флеш уже битый, или какие-то проблемы с перезагрузкой…

@LeoArsik
К плате в момент загрузки ничего не подключено?

ничего не подключено.

У есть еще другие Уно? Если есть, НИЧЕГО НЕ МЕНЯЯ - попробуйте ровно так же прошить новую плату

Произошла ошибка при загрузке скетча
avrdude: verification error, first mismatch at byte 0x0000
0x62 != 0x0c
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

Arduino 1.8.0

Других Arduino UNO нету.

это с другой платой или с той же?

с той же

Фото UNO чтобы чип USB-UART читался


CH340G