arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.29k stars 389 forks source link

IDE cannot cope with Arduino Nano Every being blocked #1950

Open oldtomdevel opened 1 year ago

oldtomdevel commented 1 year ago

Describe the problem

I am using the Arduino Nano Every with Arduino IDE V2.0.4 on Linux. While everything works perfect most of the time, I encounter sometimes the problem that it is not possible at all to upload a new program to the arduino. It happens randomly. There are a lot of people who encountered the same problem and reported that in the arduino forum (e.g. see https://forum.arduino.cc/t/no-upload-to-arduino-nano-every-possible/1033767 ) or somewhere else in internet blogs. There are a lot of explanations and solutions given. However, most given solutions do not work. If we look into detail, we can see that there are two problems. First of all, the Arduino Nano Every sometimes randomly does not communicate and does not accept any upload. Secondly, after a failed upload the IDE diables the upload button and refuses any effort to start communication with Arduino by serial monitor. After some time I found out that it is possible to solve problem no. 1 (Arduino not accepting any upload) by the classical "1200 baud touch" (even though some people argue that this must not work due to the different architecture of Nano Every - anyway, here it always works!). But due to problem no. 2, doing this using the serial monitor in IDE is possible only after a complete restart of the IDE. Therfore, the bug is the reaction of IDE to the communication problem with Arduino Nano Every. IDE should not disable further uploads and refuse communication. Instead, it should first try a reset by "1200 baud touch" and try a new upload afterwards.

To reproduce

Unfortunately, the situation of Arduino Nano Every blocking any upload happens randomly. No Trigger is known.

Expected behavior

IDE should be able to cope with that situation as this happens from time to time.

Arduino IDE version

2.0.4

Operating system

Linux

Operating system version

Linux Mint 20 Cinnamon

Additional context

No response

Issue checklist

oldtomdevel commented 3 weeks ago

The problem is still there with IDE 2.3.3. It is not possible to upload a new sketch without performing a "1200 baud touch" before. The touch is simply done by typing any single char in serial monitor with 1200 baud. Whenever I try to upload a new sketch without that touching procedure before, the upload stucks. All that is observed with a Arduino Nano Every and Arduino IDE 2.3.3 in Linux.