Avrdude: ser_open(): can't open device "\.\COM4": The semaphore timeout period has expired

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Nano, ATmega168"

Sketch uses 13904 bytes (96%) of program storage space. Maximum is 14336 bytes.

Global variables use 382 bytes (37%) of dynamic memory, leaving 642 bytes for local variables. Maximum is 1024 bytes.

avrdude: ser_open(): can't open device "\.\COM4": The semaphore timeout period has expired.

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Nano, ATmega168"

Sketch uses 13904 bytes (96%) of program storage space. Maximum is 14336 bytes.

Global variables use 382 bytes (37%) of dynamic memory, leaving 642 bytes for local variables. Maximum is 1024 bytes.

avrdude: ser_open(): can't open device "\.\COM4": The semaphore timeout period has expired.

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Nano, ATmega168"

Sketch uses 13904 bytes (96%) of program storage space. Maximum is 14336 bytes.

Global variables use 382 bytes (37%) of dynamic memory, leaving 642 bytes for local variables. Maximum is 1024 bytes.

avrdude: ser_open(): can't open device "\.\COM4": The semaphore timeout period has expired.

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions
what to do with this error

help with this please i was making a stop watch with nano and oled display while uploading the code it show an error

  1. Please do not hijack topics.
  2. You hijacked a topic in the IDE 2.x section of the forum and your information clearly showed that you're using IDE 1.8.19.

For these reasons I have a split your question to a new topic.


Not sure if I can help but does your Nano indeed has an ATmega168 and not an ATmega328P? Try the different options under tools/processor and see if one of them works.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.