# Exit status 1Exit Status 1 on Nano and most recent ide

**URL:** <https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136>\
**Category:** Uploading\
**Created:** [March 15, 2024, 11:15pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136 "2024-03-15T23:15:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 15, 2024, 11:15pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/1 "2024-03-15T23:15:14Z")

</div>

Copyright (c) 2000-2005 Brian Dean, [http://www.bdmicro.com/](http://www.bdmicro.com/)  
Copyright (c) 2007-2014 Joerg Wunsch

```
     System wide configuration file is "C:\Users\jkeen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port : COM4
     Using Programmer : arduino
     Overriding Baud Rate : 115200

```

avrdude: ser\_open(): can't set com-state for "\.\COM4"

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

So I'm on a brand new laptop. Trying to connect a nano I have already downloaded ch340. I keep getting this message what do I do?

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [March 15, 2024, 11:19pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/2 "2024-03-15T23:19:37Z")

</div>

In Windows 11 ?

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 15, 2024, 11:20pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/3 "2024-03-15T23:20:00Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [March 16, 2024, 12:32am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/4 "2024-03-16T00:32:36Z")

</div>

In the Arduino IDE, you should see the COM port in the "tools" menu.  
You can try another USB cable, or select the old bootloader in the "Tools / Processor" menu. Or try another USB port or try another computer.

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [March 16, 2024, 1:41am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/5 "2024-03-16T01:41:29Z")

</div>

I moved your topic to an appropriate forum category @pacific10.

In the future, please take some time to pick the [forum category](https://forum.arduino.cc/categories) that best suits the subject of your topic. There is an " **About the \_\_\_\_\_ category**" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in [the " **How to get the best out of this forum**" guide](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966). The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [March 16, 2024, 1:42am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/6 "2024-03-16T01:42:18Z")

</div>

Hi @pacific10. This "`can't set com-state for ...`" error occurs when uploading to the boards that use specific batches of the [WCH CH340 USB chip](http://www.wch-ic.com/products/CH340.html). The problem only occurs when using the latest version of the CH340 driver.

The affected users have reported that doing a "roll back" to an older version of the driver was an effective workaround. You can give that a try.

I'll provide instructions you can follow to do that:

1. Click the following link to download the previous version of the driver from the chip manufacturer's website:  
[https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59](https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59)
2. Wait for the download to finish.
3. Run the downloaded `CH341SER.EXE` file.
4. A " **User Account Control**" dialog may now appear asking " **Do you want to allow this app to make changes to your device?**". Click the " **Yes**" button.
5. A "**DriverSetup(X64)**" dialog will open. Click the " **INSTALL**" button in the dialog.
6. Wait for the driver installation to finish, as indicated by the appearance of a " **Driver install success!**" dialog.
7. Click the " **OK**" button in the " **Driver install success!**" dialog.  
The dialog will close.
8. Click the **X** icon at the top right of the "**DriverSetup(X64)**" dialog  
The dialog will close.
9. Close Arduino IDE if it is running.
10. Connect the Arduino board to your computer with a USB cable.
11. Open the [Windows **Device Manager**](https://support.microsoft.com/en-us/windows/open-device-manager-a7f2db46-faaf-24f0-8b7b-9e4a6032fc8c).
12. Select **View \> Devices by type** from the **Device Manager** menus.
13. Open the " **View**" menu.
14. If there is a **✓** to the left of the " **Show hidden devices**" menu item, click on " **Show hidden devices**" to disable it.
15. Open the "**Ports (COM & LPT)**" section of the **Device Manager** tree.
16. You should see a port identified as "**USB-SERIAL CH340 (COM_n_)**" under the "**Ports (COM & LPT)**" section (where "COM_n_" is some serial port e.g., COM4). Double click on that item.  
The "**USB-SERIAL CH340 (COM_n_) Properties**" dialog will open.
17. Select the " **Driver**" tab of the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.
18. You will see a " **Roll Back Driver**" button in the dialog. If it is not clickable, perform the following instructions:
  1. Click the " **Update driver**" button.  
An "**Update Drivers Device - USB-SERIAL CH340 (COM_n_)**" dialog will open.
  2. Click on " **Search automatically for drivers**" in the "**Update Drivers Device - USB-SERIAL CH340 (COM_n_)**" dialog.
  3. You should now see the driver installation wizard update the driver. Wait for the update to finish, as indicated by the message " **Windows has successfully updated your drivers**" in the dialog.  
❗ It is possible you will instead see the message " **The best drivers are already installed**". If so, please stop following the instructions here and reply on the forum thread to let me know. I'll provide alternative instructions you can follow.
  4. Click the " **Close**" button in the "**Update Drivers Device - USB-SERIAL CH340 (COM_n_)**" dialog.  
The dialog will close.

19. Click the " **Roll Back Driver**" button in the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.  
The " **Driver Package rollback**" dialog will open.
20. Click the radio button next to " **My apps don't work with this driver**" in the " **Driver Package rollback**" dialog .
21. Click the " **Yes**" button.  
The " **Driver Package rollback**" dialog will close.
22. Click the " **Close**" button in the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.

Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error before. Hopefully this time you will not encounter that "`can't set com-state`" error during the sketch upload.

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 2:23am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/7 "2024-03-16T02:23:52Z")

</div>

Im stuck at "Best drivers are already installed"

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [March 16, 2024, 9:41am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/8 "2024-03-16T09:41:09Z")

</div>

I have found that when the driver installation gets into this state, it can be solved by uninstalling and then reinstalling the drivers. After that, the "roll back" option should be enabled.

I'll provide instructions you can follow to do that:

1. Close Arduino IDE if it is running.
2. Connect the Arduino board to your computer with a USB cable.
3. Open the [Windows **Device Manager**](https://support.microsoft.com/en-us/windows/open-device-manager-a7f2db46-faaf-24f0-8b7b-9e4a6032fc8c).
4. Select **View \> Devices by type** from the **Device Manager** menus.
5. Open the " **View**" menu.
6. If there is a **✓** to the left of the " **Show hidden devices**" menu item, click on " **Show hidden devices**" to disable it.
7. Open the "**Ports (COM & LPT)**" section of the **Device Manager** tree.
8. You should see a port identified as "**USB-SERIAL CH340 (COM_n_)**" under the "**Ports (COM & LPT)**" section (where "COM_n_" is some serial port e.g., COM4). Double click on that item.  
The "**USB-SERIAL CH340 (COM_n_) Properties**" dialog will open.
9. Select the " **Driver**" tab of the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.
10. Click the " **Uninstall Device**" button.  
The " **Uninstall Device**" dialog will open.
11. Check the box next to " **☐ Attempt to remove the driver for this device.**".
12. Click the " **Uninstall**" button.  
The " **Uninstall Device**" and "**USB-SERIAL CH340 (COM_n_) Properties**" dialogs will close.
13. Disconnect the USB cable of the Arduino board from your computer.
14. Reconnect the USB cable of the Arduino board to your computer.
15. Wait for the "**USB-SERIAL CH340 (COM_n_)**" device to appear under the "**Ports (COM & LPT)**" section of the **Device Manager** tree.  
❗ This will take a couple of minutes as Windows must first automatically reinstall the driver.  
❗ It might appear first as a " **USB2.0-Serial**" device under the " **Other devices** section of the tree. Just wait for a little longer and it will appear in its final place under the "**Ports (COM & LPT)**" section.
16. Click the following link to download the previous version of the driver from the chip manufacturer's website:  
[https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59](https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59)
17. Wait for the download to finish.
18. Run the downloaded `CH341SER.EXE` file.
19. A " **User Account Control**" dialog may now appear asking " **Do you want to allow this app to make changes to your device?**". Click the " **Yes**" button.
20. A "**DriverSetup(X64)**" dialog will open. Click the " **INSTALL**" button in the dialog.
21. Wait for the driver installation to finish, as indicated by the appearance of a " **Driver install success!**" dialog.
22. Click the " **OK**" button in the " **Driver install success!**" dialog.  
The dialog will close.
23. Click the **X** icon at the top right of the "**DriverSetup(X64)**" dialog.  
The dialog will close.
24. Switch back to the Windows " **Device Manager**".
25. Double click on the "**USB-SERIAL CH340 (COM_n_)**" device under the "**Ports (COM & LPT)**" section.  
The "**USB-SERIAL CH340 (COM_n_) Properties**" dialog will open.
26. Select the " **Driver**" tab of the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.
27. Click the " **Update driver**" button.  
An "**Update Drivers Device - USB-SERIAL CH340 (COM_n_)**" dialog will open.
28. Click on " **Search automatically for drivers**" in the "**Update Drivers Device - USB-SERIAL CH340 (COM_n_)**" dialog.
29. You should now see the driver installation wizard update the driver. Wait for the update to finish, as indicated by the message " **Windows has successfully updated your drivers**" in the dialog.
30. Click the " **Close**" button in the "**Update Drivers Device - USB-SERIAL CH340 (COM_n_)**" dialog.  
The dialog will close.
31. Click the " **Roll Back Driver**" button in the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.  
The " **Driver Package rollback**" dialog will open.
32. Click the radio button next to " **My apps don't work with this driver**" in the " **Driver Package rollback**" dialog .
33. Click the " **Yes**" button.  
The " **Driver Package rollback**" dialog will close.
34. Click the " **Close**" button in the "**USB-SERIAL CH340 (COM_n_) Properties**" dialog.

Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error before. Hopefully this time you will not encounter that "`can't set com-state`" error during the sketch upload.

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 10:27am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/9 "2024-03-16T10:27:32Z")

</div>

avrdude: Version 6.3-20190619  
Copyright (c) 2000-2005 Brian Dean, [http://www.bdmicro.com/](http://www.bdmicro.com/)  
Copyright (c) 2007-2014 Joerg Wunsch

```
     System wide configuration file is "C:\Users\jkeen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port : COM4
     Using Programmer : arduino
     Overriding Baud Rate : 115200

```

avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_getsync() attempt 1 of 10: not in sync: resp=0xbd

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 10:28am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/10 "2024-03-16T10:28:18Z")

</div>

I thought it was going to work but unfortunately no.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [March 16, 2024, 10:46am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/11 "2024-03-16T10:46:52Z")

</div>

Please try this experiment and then report back with the results:

* * *

❗ This procedure is not intended to solve the problem. The purpose is to gather more information.

* * *

1. Connect the Arduino board to your computer with a USB cable.
2. Press and release the button on the Arduino board that is marked " **RESET**".

Now please reply here on the forum thread with the answers to the following questions:

- Did you see the LED marked " **L**" on the board blink immediately after you released the " **RESET**" button?
- Did the LED blink only once, or did it blink multiple times quickly immediately after releasing the button?

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [March 16, 2024, 11:02am UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/12 "2024-03-16T11:02:26Z")

</div>

> [@pacific10](#):
>
> I thought it was going to work but unfortunately no.

But you now have a different error message 😉 Consider that progress 🙂

`Overriding Baud Rate : 115200` indicates that you're using the "328P" option under tools / processors in the IDE. Try the "old bootloader" option and if that fails the 168 under tools / processors.

The approach by @ptillisch in post #11 is to determine if there is a bootloader and if yes, which one.

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 12:54pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/13 "2024-03-16T12:54:14Z")

</div>

\\\the light by L never lit up. Beside that \i have the red pwr light that stayed red no change at all\

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 12:59pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/14 "2024-03-16T12:59:55Z")

</div>

System wide configuration file is "C:\Users\jkeen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

```
     Using Port : COM4
     Using Programmer : arduino
     Overriding Baud Rate : 57600
     AVR Part : ATmega328P
     Chip Erase delay : 9000 us
     PAGEL : PD7
     BS2 : PC2
     RESET disposition : dedicated
     RETRY pulse : SCK
     serial program mode : yes
     parallel program mode : yes
     Timeout : 200
     StabDelay : 100
     CmdexeDelay : 25
     SyncLoops : 32
     ByteDelay : 0
     PollIndex : 3
     PollValue : 0x53
     Memory Detail :

                              Block Poll Page Polled
       Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
       flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
       lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
       signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

     Programmer Type : Arduino
     Description : Arduino
     Hardware Version: 2
     Firmware Version: 1.16
     Vtarget : 0.0 V
     Varef : 0.0 V
     Oscillator : Off
     SCK period : 0.1 us

```

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)  
avrdude: reading input file "C:\Users\jkeen\AppData\Local\Temp\arduino\sketches\69CD8DE5925429A4E0C3D27F22555C45/sketch\_mar16a.ino.hex"  
avrdude: writing flash (924 bytes):

Writing | avrdude: stk500\_recv(): programmer is not responding  
######avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_recv(): programmer is not responding

I tried the old bootloader and this came up

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [March 16, 2024, 2:02pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/15 "2024-03-16T14:02:11Z")

</div>

> [@pacific10](#):
>
> the light by L never lit up.

If it did not flash, there is no bootloader on the 328P processor. Can you post a link to what you exactly bought. Or post a clear photo of the top so we can try to identify the microcontroller.

The usual solution is to (try to) burn the bootloader.

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 2:33pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/16 "2024-03-16T14:33:26Z")

</div>

nano v3.0 atmega328p/ch340 5v 16m micro controller

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 4:59pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/17 "2024-03-16T16:59:32Z")

</div>

i found another controller the light by L flashes on it when you hit reset  
]]\

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 7:08pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/18 "2024-03-16T19:08:10Z")

</div>

avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_getsync() attempt 2 of 10: not in sync: resp=0xe8  
Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes.  
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.  
avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_getsync() attempt 3 of 10: not in sync: resp=0xe8  
avrdude: stk500\_recv(): programmer is not responding  
avrdude: stk500\_getsync() attempt 4 of 10: not in sync: resp=0xe8

---

<div class="post-metadata">

**Author:** ![pacific10](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pacific10](https://forum.arduino.cc/u/pacific10)\
**Post date:** [March 16, 2024, 9:13pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/19 "2024-03-16T21:13:23Z")

</div>

It just blinked once

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [March 16, 2024, 9:37pm UTC](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136/20 "2024-03-16T21:37:25Z")

</div>

This error might be caused by having the wrong port selected from the **Tools \> Port** menu in Arduino IDE.

Please perform this experiment to verify that the port you have selected is your Arduino board:

1. Disconnect the USB cable of the Arduino board from your computer.
2. Select **Tools \> Port** from the Arduino IDE menus.
3. Take note of the ports, if any, listed in the menu.
4. Close the **Tools** menu.  
❗ The ports list is only updated when the **Tools** menu is re-opened, so this step is essential.
5. Connect the Arduino board to your computer with a USB cable.
6. Select **Tools \> Port** from the Arduino IDE menus. - If a new port is listed in the menu, that is the port of your Arduino board.

Select that port from the menu and try uploading again.

If the upload still fails, or if no new port appeared after you plugged the Arduino board into your computer, add a reply here to let us know and we'll investigate the problem further.

[Next page](https://forum.arduino.cc/t/exit-status-1exit-status-1-on-nano-and-most-recent-ide/1236136.md?page=2)
