You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling or uploading code, this error will occur if no board is selected, or if the board core is not installed.
12
+
The error occurs if no board has been selected.
13
13
14
-
Note that a board needs to be selected even if you're not uploading any code.
14
+
Note that a board needs to be selected even if you're not uploading any code (i.e. clicking  Verify).
15
15
16
-
## Is a board selected?
16
+
## Select board
17
17
18
-
Since the code cannot compile without a board selected, we'll start by ensuring just that.
18
+
With IDE 2, you can use the board selector menu:
19
19
20
-

20
+
* Connected boards that were identified by Arduino IDE will appear in the list.
21
+
* To manually select the board, or to select a board without connecting it, choose _Select other board and port_.
21
22
22
-
It should be looking somewhat like the above. The name of your board should be visible in the board dropdown bar. There may also be a red cross. This indicates that the board isn't available on any port but this will not prevent the code from compiling.
23
+

23
24
24
-
If it reads `no board selected`, a board needs to be selected. Click to open the dropdown.
25
+
Alternatively, use the _Tools > Board_ menu option:
25
26
26
-

27
+

27
28
28
-
If you have a board plugged in, and you want to write code for that board, you can choose it in the dropdown. Otherwise, choose 'Select Other Board & Port'.
29
+
See [Select board and port in Arduino IDE](https://support.arduino.cc/hc/en-us/articles/4406856349970-Select-board-and-port-in-Arduino-IDE) to learn more.
In this case, choose 'Yes' to have the required core installed.
39
-
40
-
## Is the board core installed?
37
+
In this case, choose **Yes** to install the required core.
41
38
42
-
In the above example, we used the pop-up to install the required core. If you didn't receive a pop-up, or if you're receiving the same error despite a board being selected, please ensure the *board core* is installed using [this guide](https://www.arduino.cc/en/Tutorial/getting-started-with-ide-v2/ide-v2-board-manager#installing-a-core).
39
+
To learn more about board installation, see [Add boards to Arduino IDE](https://support.arduino.cc/hc/en-us/articles/360016119519-Add-boards-to-Arduino-IDE).
title: "Compilation error: Platform not found: platform not installed"
3
+
id: 360020846379
4
+
---
5
+
6
+
When compiling or uploading, the following error may appear in the output panel.
7
+
8
+
```
9
+
Compilation error: Platform <platform name> not found: platform not installed
10
+
```
11
+
12
+
This error appears when the selected board is not installed.
13
+
14
+
Follow these steps:
15
+
16
+
1. Check that you've selected the correct board. See [Select board and port in Arduino IDE](https://support.arduino.cc/hc/en-us/articles/4406856349970-Select-board-and-port-in-Arduino-IDE).
17
+
2. If the required board is not installed, install it. See [Add boards to Arduino IDE](https://support.arduino.cc/hc/en-us/articles/360016119519-Add-boards-to-Arduino-IDE).
A `Compilation error: exit status 1` error indicates that the sketch compilation process has failed, and is not related to the upload process. For more information, look at previous lines in the error output.
6
+
7
+
For example, check this error output:
8
+
9
+
```
10
+
.../core_arduino_samd_mkrwifi1010_dc4ffca0ef28855003b5cc223e78a605.a(main.cpp.o): In function `main':
11
+
.../Arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/main.cpp:53: undefined reference to `loop'
12
+
collect2: error: ld returned 1 exit status
13
+
14
+
exit status 1
15
+
16
+
Compilation error: exit status 1
17
+
```
18
+
19
+
The most useful information is ``undefined reference to `loop'``, which occurs because the sketch is missing a correctly defined `loop()` function.
20
+
21
+
## Further reading
22
+
23
+
*[If your sketch doesn't compile](https://support.arduino.cc/hc/en-us/articles/4402764401554-If-your-sketch-doesn-t-compile)
Copy file name to clipboardExpand all lines: content/Software Support/Upload/About-error-messages-with-exit-status.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
---
2
-
title: "Error: exit status 1"
2
+
title: 'About error messages with "exit status"'
3
3
id: 360016955139
4
4
---
5
5
6
-
**Exit status 1** is used in some error messages to indicate that a process has finished (or "exited") in failure. Other parts of the error message will often contain more specific information.
6
+
Error messages that occur when Arduino IDE is compiling or uploading a sketch can include an exit status.
7
+
8
+
**Exit status 1** indicates that a process has finished (or "exited") in failure. Other parts of the error message will often contain more specific information.
7
9
8
10
Your error output may end with one of these lines:
title: "Failed uploading: uploading error: exit status 1"
3
+
---
4
+
5
+
`Failed uploading: uploading error: exit status 1` is a generic error message indicating that the upload has failed.
6
+
7
+
## Check the console output
8
+
9
+
Often preceding lines will contain more specific information. For example:
10
+
11
+
```
12
+
No device found on cu.Bluetooth-Incoming-Port
13
+
Failed uploading: uploading error: exit status 1
14
+
```
15
+
16
+
In this case the `cu.Bluetooth-Incoming-Port` port was selected by mistake. Since no board is connected to the port, the upload failed. This is indicated by the `No device found on cu.Bluetooth-Incoming-Port` message. The issue can be solved by selecting the right port in the _Tools > Port_ menu.
17
+
18
+
## If you're not sure what's causing the error
19
+
20
+
Follow these steps:
21
+
22
+
1.**Check your connections**. Your board needs to be connected with a data USB cable (charge-only cables will not work). Make sure the cable is fully inserted in the port on each end. Try a different USB cable, and avoid hubs and other adapters if possible. Remove connections to the board pins, especially the **0 (RX)** and **1 (TX)** digital pins.
23
+
24
+
2.**Check your board and port selections**. In the top menu bar, make sure the correct board is selected in _Tools > Board_, and that you've selected the right port in _Tools > Port_. Try disconnecting and reconnecting your board if you're unsure which port is being used (close and reopen the Port menu to refresh the list). For more information, see [Select the right port and board](https://support.arduino.cc/hc/en-us/articles/4406856349970-Select-board-and-port).
25
+
26
+
3.**Make sure other applications aren't using the port**. Close other instances of the IDE, serial monitors, and any other applications that may be using the port. See [Find and stop process blocking a port](https://support.arduino.cc/hc/en-us/articles/4407830972050-Find-and-stop-process-blocking-a-port).
27
+
28
+
## Further reading
29
+
30
+
*[Errors when uploading a sketch](https://support.arduino.cc/hc/en-us/articles/4403365313810-Errors-when-uploading-a-sketch)
0 commit comments