Sub topic 5
Installing board packages with the Boards Manager
This chapter assumes you have installed the Arduino IDE and can find the main areas of its interface. It also assumes you know what a microcontroller board is, and that you have a USB data cable. You do not need a board that requires extra software. If you use an Uno, you can read this chapter to understand the mechanism and then continue.
Why boards need packages
The Arduino IDE does not know how to build code for every chip. A board package, also called a core or a platform, is a downloadable bundle that teaches the IDE how to compile and upload for one family of boards. A package typically contains:
- The compiler toolchain for the chip architecture, such as
avr-gccfor AVR chips orarm-none-eabi-gccfor ARM chips. - The core library, which provides functions such as
pinMode(),digitalWrite(), andSerial. - A
boards.txtfile that lists each board in the family and its settings, such as clock speed, memory size, and upload method. - Pin definitions for each board, so that names like
LED_BUILTINmap to the correct physical pin. - Upload tools, such as
avrdudeorbossac, that send the compiled program to the board.
The Boards Manager is the IDE tool that finds, downloads, installs, updates, and removes these packages. Without the right package, your board will not appear in the board list, and a sketch cannot be compiled for it.
Which boards need a package
Some packages ship with the IDE. The Arduino AVR Boards package is bundled in some installs, and it covers the Uno, Nano, Mega 2560, and Leonardo. Other families need a manual install.
| Board family | Example boards | Package name in the Boards Manager |
|---|---|---|
| AVR | Uno R3, Nano, Mega 2560, Leonardo | Arduino AVR Boards |
| Renesas | Uno R4 Minima, Uno R4 WiFi | Arduino UNO R4 Boards |
| SAMD | MKR WiFi 1010, Zero, Nano 33 IoT | Arduino SAMD Boards (32-bits ARM Cortex-M0+) |
| mbed OS | Nano 33 BLE, Nano RP2040 Connect | Arduino Mbed OS Nano Boards |
| ESP32 | ESP32 Dev Module and many clones | esp32 by Espressif Systems |
Package names change between releases, so treat this table as a guide. If you are unsure, check the documentation for your board. It names the package you need.
An Uno R4 is a good example of a trap. It is called an Uno, but it uses a different chip from the Uno R3. It needs the Renesas package, and the AVR package does not help.
Opening the Boards Manager
You can open the Boards Manager in two ways.
- Click the board icon in the left sidebar of the IDE 2.x window.
- Choose Tools > Board > Boards Manager... from the menu.
The panel shows a search box and a list of packages. Each entry shows the package name, its author, the boards it covers, and a version selector. A package that is already installed has a Remove button instead of Install.
Installing a package
Follow these steps to install the package for your board.
- Open the Boards Manager.
- Type part of the package name or board name into the search box, for example
UNO R4. - Find the entry whose author is the one named in your board's documentation. For Arduino boards this is Arduino.
- Choose a version from the dropdown if you need a specific one. The latest version is selected by default.
- Click Install.
- Wait for the download and installation to finish. The Output panel shows progress, and large packages with several toolchains can take a few minutes.
When the install succeeds, the entry shows an INSTALLED label. The new boards now appear under Tools > Board in a group named after the package.
Where the package index comes from
The Boards Manager does not search the internet for every query. It reads a package index, which is a JSON file that lists available packages, their versions, download URLs, and checksums. Arduino publishes the official index at https://downloads.arduino.cc/packages/package_index.json, and the IDE loads it automatically.
When you click Install, the IDE does the following:
- Looks up the package and version in the index.
- Downloads the package archive and any tool archives it depends on.
- Verifies each download against the checksum from the index.
- Extracts the files into the IDE's data folder.
The checksum step is the reason a corrupted or tampered download fails instead of installing silently.
Adding third-party packages with Additional Boards Manager URLs
Boards from other makers, such as ESP32 boards, are not in Arduino's official index. Each maker publishes its own index file. You tell the IDE where to find it by adding its URL to the settings.
- Open File > Preferences (on macOS, Arduino IDE > Settings).
- Find the field named Additional boards manager URLs.
- Paste the URL of the index. To use several, click the icon beside the field and put one URL on each line.
- Click OK. The IDE reloads its indexes.
- Open the Boards Manager and search for the new package.
For ESP32 boards, the URL published by Espressif is:
https://espressif.github.io/arduino-esp32/package_esp32_index.jsonAlways copy the URL from the maker's own documentation, because URLs change. A third-party index is code that your computer downloads and runs as part of the build. Only add indexes from sources you trust.
Versions and updates
Each package has a version number. The Boards Manager shows an Update option when a newer version exists. Consider these points before you update.
- Newer is not always safer for a working project. A new core version can change library behavior or remove deprecated functions. If a project works, you may choose to hold its version.
- You can install an older version. Pick it from the version dropdown and click Install. This is the usual fix when an update breaks a sketch.
- Only one version of a package is active at a time. Installing another version replaces the current one.
- Libraries may depend on the core. Some libraries only work with certain cores, so a core update can change which libraries compile.
Checking what is installed
You can confirm a package is present in three ways.
- Open the Boards Manager and look for the INSTALLED label.
- Open Tools > Board and check that your board appears.
- Use the command line tool
arduino-cli, if you have it, to list the installed cores.
arduino-cli core listThe output lists each installed core, its installed version, the latest available version, and its name. If you do not use the command line, the first two methods are enough.
Removing a package
Open the Boards Manager, find the installed package, and click Remove. This frees disk space and removes the boards from the menu. Sketches that target those boards will no longer compile until you reinstall the package. Your sketch files are not touched.
Common errors
| Symptom | Likely cause | What to do |
|---|---|---|
| Package does not appear in search | The third-party index URL is missing or mistyped | Check **Additional boards manager URLs** for typos, then restart the IDE |
| Download fails or stalls | Network interruption, firewall, or proxy | Retry on a stable connection. Configure proxy settings if your network requires one |
| Checksum or extraction error | A corrupted download | Remove the package, then install it again |
| Board missing from the menu after install | The wrong package was installed, such as AVR for an Uno R4 | Install the package named in your board's documentation |
| Compile error after an update | The new core version changed behavior | Install the previous version from the version dropdown |
| Permission error on install | The data folder is not writable | Check folder permissions and that no other program has the files open |
How this connects to the next steps
Installing a package makes your board available, but it does not select it. The next chapter covers choosing the board in Tools > Board so that the IDE compiles with the right settings. The chapter after that covers choosing the serial port.
Exercise
You have a new Arduino Uno R4 WiFi. The IDE's Tools > Board menu lists only AVR boards such as the Uno and Nano, and your board is missing. What do you do, and why does the Uno R3 package not cover this board?
Show answer
Open the Boards Manager, search for "UNO R4", and install the Arduino UNO R4 Boards package by Arduino. The Uno R4 uses a Renesas chip, which has a different architecture from the AVR chip in the Uno R3. The AVR package contains the wrong compiler toolchain and pin definitions, so a separate package is required. After the install finishes, the Uno R4 WiFi appears under Tools > Board.
Exercise
You add an ESP32 index URL to Additional boards manager URLs, but searching for "esp32" in the Boards Manager returns nothing. Name two things to check.
Show answer
First, check that the URL was pasted exactly and that each URL is on its own line, with no stray characters. Second, confirm the preferences dialog was closed with OK so the IDE reloaded its indexes, and restart the IDE if needed. You should also verify that your network can reach the URL.
Exercise
A sketch compiled yesterday, but after you updated the board package it fails with errors about a function that no longer exists. How do you recover?
Show answer
Open the Boards Manager, find the installed package, pick the previous version from the version dropdown, and click Install. This replaces the active version with the older one, and the sketch compiles again. Then decide whether to update the sketch to the new core's behavior before upgrading again.