I cannot upload any code to my arduino nano
For me selecting the ATmega328P (Old Bootloader) from the Tools --&gt; Processor menu in the Arduino IDE solved the problem.
See: https://gyorgybalassy.wordpress.com/2020/10/16/arduino-programmer-is-not-responding-not-in-sync-error/