An error occurred while uploading the sketch. Tried "everything"


Recently I can't uplode my code to Arduino Nano (Windows 10) anymore. I never had problems sofar.
Compiling is ok.

Sketch uses 8958 bytes (29%) of program storage space. Maximum is 30720 bytes.
Global variables use 395 bytes (19%) of dynamic memory, leaving 1653 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch.

While the uploading hangs, the nano starts executing the old code.

I tried:

  • removing and reinstalling IDE (1.8.7)
  • use different COM ports (and setting of course)
  • try new cables and other Arduino nano's
  • try other computer
  • changing all settings in the IDE and retrying

Uploading to Arduino Uno does work however!, but I do need the nano

Please help...



You are my hero!

Apparently I did not try ALL settings.

Thanks. It worked.