‘’’
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\peter\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM14
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: ser_open(): can’t open device “\.\COM14”: �������� � �������.
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
‘’‘’
Код то загружается, то нет. (При этом неважно какой код, ошибка даже с кодом из примеров появляется). Компиляцию всегда успешная.
Когда долго подожду или перезагружу ноутбук (При этом в программе ничего не меняю и настройки те же), то код загружается и программа работает
Вы случайно не используете Serial Plotter? - судя по сообщениям с ардуино.сс, плоттер не всегда освобождает порт после использования и тогда возникает эта ошибка
То же самое с Монитором порта. Закрывайте и то и другое в программе перед загрузкой
надо закрывать ДО загрузки. После того как вы попробовали загрузить с открытым Монитором - дескрипторы порта портятся и после этого либо рестарт, либо ждать несколько часов
There is a known bug in Arduino IDE 2.x that causes uploads to fail with this “Access is denied” error if you try uploading while Serial Monitor or Serial Plotter is open. A port can only be used by one process at a time, so Arduino IDE automatically closes the port in Serial Monitor and Serial Plotter during an upload, automatically opening it again after. For some reason, that juggling of the port control is not working for boards that use the FTDI FT232R USB chip on your SparkFun Redboard (Arduino Uno uses a different USB chip, which would explain why you only experience the error with the Redboard).
The workaround is to manually close the port in Serial Monitor before doing an upload. Please give that a try and then let me know if you still have the error while uploading: