Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,37 @@ title: "Compilation error: Missing FQBN (Fully Qualified Board Name)"
id: 4412950941074
---

When compiling or uploading, the following error appears in the output panel.
When compiling or uploading, the following error may occur:

```
Compilation error: Missing FQBN (Fully Qualified Board Name)
```

When compiling or uploading code, this error will occur if no board is selected, or if the board core is not installed.
The error occurs if no board has been selected.

Note that a board needs to be selected even if you're not uploading any code.
Note that a board needs to be selected even if you're not uploading any code (i.e. clicking ![Verify button](img/symbol_verify2.png) Verify).

## Is a board selected?
## Select board

Since the code cannot compile without a board selected, we'll start by ensuring just that.
With IDE 2, you can use the board selector menu:

![The Arduino IDE. The board dropdown displays Arduino UNO, with a red cross.](img/Arduino-Uno_no-port.png)
* Connected boards that were identified by Arduino IDE will appear in the list.
* To manually select the board, or to select a board without connecting it, choose _Select other board and port_.

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.
![The board selector menu in Arduino IDE 2.](img/board-selector-labels.png)

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

![The board dropdown open, with no board selected.](img/select-other-board-and-port.png)
![The 'Tools > Board' menu bar option.](img/tools-menu-board.png)

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'.
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.

![The 'Select Board' window.](img/select-board.png)

Choose the intended board. You do not have to select a port. Click 'OK'.
## Install missing boards

If you do not have the associated board core installed, you may receive the following pop-up.

![The board core installation pop-up.](img/board-core-install-pop-up.png)

In this case, choose 'Yes' to have the required core installed.

## Is the board core installed?
In this case, choose **Yes** to install the required core.

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).
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).
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Compilation error: Platform not found: platform not installed"
id: 360020846379
---

When compiling or uploading, the following error may appear in the output panel.

```
Compilation error: Platform <platform name> not found: platform not installed
```

This error appears when the selected board is not installed.

Follow these steps:

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).
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).
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "Compilation error: exit status 1"
---

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.

For example, check this error output:

```
.../core_arduino_samd_mkrwifi1010_dc4ffca0ef28855003b5cc223e78a605.a(main.cpp.o): In function `main':
.../Arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/main.cpp:53: undefined reference to `loop'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
```

The most useful information is ``undefined reference to `loop'``, which occurs because the sketch is missing a correctly defined `loop()` function.

## Further reading

* [If your sketch doesn't compile](https://support.arduino.cc/hc/en-us/articles/4402764401554-If-your-sketch-doesn-t-compile)

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
title: "Error: exit status 1"
title: 'About error messages with "exit status"'
id: 360016955139
---

**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.
Error messages that occur when Arduino IDE is compiling or uploading a sketch can include an exit status.

**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.

Your error output may end with one of these lines:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: "Failed uploading: uploading error: exit status 1"
---

`Failed uploading: uploading error: exit status 1` is a generic error message indicating that the upload has failed.

## Check the console output

Often preceding lines will contain more specific information. For example:

```
No device found on cu.Bluetooth-Incoming-Port
Failed uploading: uploading error: exit status 1
```

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.

## If you're not sure what's causing the error

Follow these steps:

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.

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).

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).

## Further reading

* [Errors when uploading a sketch](https://support.arduino.cc/hc/en-us/articles/4403365313810-Errors-when-uploading-a-sketch)