2019-08-27 13:45:50 +08:00
***** ***** *
2019-06-25 11:26:53 +10:00
Get Started
***** ***** *
2019-03-14 00:10:26 +08:00
:link_to_translation:`zh_CN:[中文]`
2020-09-04 10:42:36 +02:00
.. Please keep README.md in sync with these instructions.
2021-07-22 15:54:47 +08:00
This document is intended to help you set up the software development environment for the hardware based on the {IDF_TARGET_NAME} chip by Espressif. After that, a simple example will show you how to use ESP-IDF (Espressif IoT Development Framework) for menu configuration, then for building and flashing firmware onto an {IDF_TARGET_NAME} board.
2019-03-14 00:10:26 +08:00
2019-11-13 11:46:16 +08:00
.. include-build-file :: inc/version-note.inc
2019-03-14 00:10:26 +08:00
Introduction
============
2020-03-05 05:05:23 +08:00
{IDF_TARGET_NAME} is a system on a chip that integrates the following features:
2019-12-09 11:01:09 +08:00
2020-07-09 11:37:16 +08:00
.. only :: esp32
2019-12-09 11:01:09 +08:00
* Wi-Fi (2.4 GHz band)
2020-07-09 11:37:16 +08:00
* Bluetooth
2021-01-27 10:12:58 +08:00
* Dual high performance Xtensa® 32-bit LX6 CPU cores
2019-12-09 11:01:09 +08:00
* Ultra Low Power co-processor
2020-03-04 04:58:29 +08:00
* Multiple peripherals
2020-07-09 11:37:16 +08:00
.. only :: esp32s2
* Wi-Fi (2.4 GHz band)
2021-01-27 10:12:58 +08:00
* High performance single core Xtensa® 32-bit LX7 CPU
2020-07-09 11:37:16 +08:00
* Ultra Low Power co-processor running either RISC-V or FSM core
* Multiple peripherals
* Built-in security hardware
* USB OTG interface
2019-12-09 11:01:09 +08:00
2021-06-28 16:37:03 +08:00
.. only :: esp32s3
* Wi-Fi (2.4 GHz band)
* Bluetooth Low Energy
2021-06-30 18:05:36 +08:00
* Dual high performance Xtensa® 32-bit LX7 CPU cores
2021-06-28 16:37:03 +08:00
* Ultra Low Power co-processor running either RISC-V or FSM core
* Multiple peripherals
* Built-in security hardware
* USB OTG interface
* USB Serial/JTAG Controller
2021-01-27 10:12:58 +08:00
.. only :: esp32c3
* Wi-Fi (2.4 GHz band)
* Bluetooth Low Energy
* High performance 32-bit RISC-V single-core processor
* Multiple peripherals
* Built-in security hardware
2022-05-19 23:22:24 +08:00
.. only :: esp32c2
* Wi-Fi (2.4 GHz band)
* Bluetooth Low Energy
* High performance 32-bit RISC-V single-core processor
* Multiple peripherals
* Intended for simple, high-volume IoT applications
2025-05-26 13:06:21 +08:00
.. only :: esp32c5
* Wi-Fi 6 (2.4 and 5 GHz dual-band)
* Bluetooth Low Energy
* 802.15.4 Thread/Zigbee
* High performance 32-bit RISC-V single-core processor
* Multiple peripherals
* Built-in security hardware
2022-11-14 14:04:36 +08:00
.. only :: esp32c6
* Wi-Fi 6 (2.4 GHz band)
* Bluetooth Low Energy
* 802.15.4 Thread/Zigbee
* High performance 32-bit RISC-V single-core processor
* Multiple peripherals
* Built-in security hardware
2023-06-06 09:40:55 +08:00
.. only :: esp32h2
* Bluetooth Low Energy
* 802.15.4 Thread/Zigbee
* High performance 32-bit RISC-V single-core processor
* Multiple peripherals
* Built-in security hardware
2024-04-16 16:26:07 +08:00
.. only :: esp32p4
* High performance MCU with RISC-V dual-core processors
* Powerful image and voice processing capability
* Single-precision FPU and AI extensions
* Rich set of peripherals including MIPI, USB, SDIO, and Ethernet
* Built-in security hardware
2025-04-08 15:13:33 +08:00
.. only :: esp32p4
Powered by 40 nm technology, {IDF_TARGET_NAME} offers excellent power efficiency, security, and reliability, making it suitable for a wide range of application scenarios and power consumption requirements.
.. only :: not esp32p4
Powered by 40 nm technology, {IDF_TARGET_NAME} offers excellent power efficiency, RF performance, security, and reliability, making it suitable for a wide range of application scenarios and power consumption requirements.
2019-12-09 11:01:09 +08:00
Espressif provides basic hardware and software resources to help application developers realize their ideas using the {IDF_TARGET_NAME} series hardware. The software development framework by Espressif is intended for development of Internet-of-Things (IoT) applications with Wi-Fi, Bluetooth, power management and several other system features.
2019-03-14 00:10:26 +08:00
What You Need
=============
2022-02-14 10:17:08 +00:00
Hardware
~~~~~~~~
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
* An **{IDF_TARGET_NAME}** board.
* **USB cable** - USB A / micro USB B.
* **Computer** running Windows, Linux, or macOS.
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
.. note :: Currently, some of the development boards are using USB Type C connectors. Be sure you have the correct cable to connect your board!
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
If you have one of {IDF_TARGET_NAME} official development boards listed below, you can click on the link to learn more about the hardware.
2019-03-14 00:10:26 +08:00
2019-12-09 11:01:09 +08:00
.. only :: esp32
2019-03-14 00:10:26 +08:00
2019-12-09 11:01:09 +08:00
.. toctree ::
:maxdepth: 1
2024-08-05 15:26:59 +08:00
ESP32-DevKitC <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-devkitc/index.html>
2024-10-08 19:07:30 +08:00
ESP32-DevKitM-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-devkitm-1/index.html>
2024-08-05 15:26:59 +08:00
ESP-WROVER-KIT <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp-wrover-kit/index.html>
2024-08-12 17:17:14 +08:00
ESP32-PICO-KIT <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-pico-kit/index.html>
2024-07-26 18:00:22 +08:00
ESP32-Ethernet-Kit <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-ethernet-kit/index.html>
2024-08-12 17:17:14 +08:00
ESP32-PICO-KIT-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-pico-kit-1/index.html>
2024-08-05 15:26:59 +08:00
ESP32-PICO-DevKitM-2 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-pico-devkitm-2/index.html>
2019-08-27 13:45:50 +08:00
2020-03-04 04:58:29 +08:00
.. only :: esp32s2
2020-03-26 18:40:05 +08:00
.. toctree ::
:maxdepth: 1
2021-01-27 10:12:58 +08:00
2024-10-16 15:45:15 +08:00
ESP32-S2-Saola-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s2/esp32-s2-saola-1/index.html>
2024-06-07 17:08:44 +08:00
ESP32-S2-DevKitM-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s2/esp32-s2-devkitm-1/index.html>
2024-06-25 15:22:09 +08:00
ESP32-S2-DevKitC-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s2/esp32-s2-devkitc-1/index.html>
2024-07-26 11:06:15 +08:00
ESP32-S2-Kaluga-Kit <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s2/esp32-s2-kaluga-1/index.html>
2020-03-04 04:58:29 +08:00
2021-01-27 10:12:58 +08:00
.. only :: esp32c3
2021-02-05 12:00:40 +08:00
.. toctree ::
:maxdepth: 1
2021-01-27 10:12:58 +08:00
2024-05-21 17:55:05 +08:00
ESP32-C3-DevKitM-1 <https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c3/esp32-c3-devkitm-1/index.html>
ESP32-C3-DevKitC-02 <https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c3/esp32-c3-devkitc-02/index.html>
2021-06-28 16:37:03 +08:00
2021-06-22 16:55:32 +08:00
.. only :: esp32s3
.. toctree ::
:maxdepth: 1
2024-10-16 15:45:15 +08:00
ESP32-S3-DevKitC-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-devkitc-1/index.html>
ESP32-S3-DevKitM-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-devkitm-1/index.html>
2021-06-22 16:55:32 +08:00
2022-05-19 23:22:24 +08:00
.. only :: esp32c2
.. toctree ::
:maxdepth: 1
ESP8684-DevKitM-1 <https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp8684/esp8684-devkitm-1/index.html>
2025-05-26 13:06:21 +08:00
.. only :: esp32c5
.. toctree ::
:maxdepth: 1
ESP32-C5-DevKitC-1 <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c5/esp32-c5-devkitc-1/index.html>
2023-05-10 16:58:47 +08:00
.. only :: esp32c6
.. toctree ::
:maxdepth: 1
ESP32-C6-DevKitC-1 <https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c6/esp32-c6-devkitc-1/index.html>
ESP32-C6-DevKitM-1 <https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c6/esp32-c6-devkitm-1/index.html>
2024-04-16 16:26:07 +08:00
.. only :: esp32p4
2025-05-12 14:25:38 +08:00
.. toctree ::
:maxdepth: 1
ESP32-P4-Function-EV-Board <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-function-ev-board/index.html>
ESP32-P4-EYE <https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-eye/index.html>
2024-04-16 16:26:07 +08:00
2019-06-25 11:26:53 +10:00
.. _get-started-get-prerequisites:
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
Software
~~~~~~~~
2019-03-14 00:10:26 +08:00
2022-04-12 18:46:15 +08:00
To start using ESP-IDF on **{IDF_TARGET_NAME}** , install the following software:
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
* **Toolchain** to compile code for {IDF_TARGET_NAME}
* **Build tools** - CMake and Ninja to build a full **Application** for {IDF_TARGET_NAME}
* **ESP-IDF** that essentially contains API (software libraries and source code) for {IDF_TARGET_NAME} and scripts to operate the **Toolchain**
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
.. figure :: ../../_static/what-you-need.png
2019-03-14 00:10:26 +08:00
:align: center
2022-02-14 10:17:08 +00:00
:alt: Development of applications for {IDF_TARGET_NAME}
2019-03-14 00:10:26 +08:00
:figclass: align-center
2022-02-14 10:17:08 +00:00
.. _get-started-step-by-step:
.. _get-started-how-to-get-esp-idf:
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
Installation
============
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
To install all the required software, we offer some different ways to facilitate this task. Choose from one of the available options.
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
IDE
~~~
2020-03-05 05:05:23 +08:00
2022-02-14 10:17:08 +00:00
.. note :: We highly recommend installing the ESP-IDF through your favorite IDE.
2020-03-05 05:05:23 +08:00
2022-06-22 16:51:31 +08:00
* `Eclipse Plugin <https://github.com/espressif/idf-eclipse-plugin/blob/master/README.md> `_
2024-11-28 14:07:37 +08:00
* `VSCode Extension <https://github.com/espressif/vscode-esp-idf-extension/blob/master/README.md> `_
2020-03-05 05:05:23 +08:00
2022-02-14 10:17:08 +00:00
Manual Installation
~~~~~~~~~~~~~~~~~~~
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
For the manual procedure, please select according to your operating system.
2019-03-14 00:10:26 +08:00
2022-02-14 10:17:08 +00:00
.. toctree ::
:maxdepth: 1
2019-03-14 00:10:26 +08:00
2022-04-15 16:26:21 +02:00
Windows Installer <windows-setup>
Linux and macOS <linux-macos-setup>
2019-06-25 11:29:49 +10:00
2022-02-14 10:17:08 +00:00
Build Your First Project
========================
2019-06-25 11:29:49 +10:00
2023-11-02 14:10:34 +08:00
If you already have the ESP-IDF installed and are not using an IDE, you can build your first project from the command line following the :ref: `Start a Project on Windows <get-started-windows-first-steps>` or :ref: `Start a Project on Linux and macOS <get-started-linux-macos-first-steps>` .
2022-02-20 14:15:43 +05:30
.. _Stable version: https://docs.espressif.com/projects/esp-idf/en/stable/
2023-08-10 13:42:24 +02:00
Uninstall ESP-IDF
=================
2023-08-18 12:04:10 +08:00
If you want to remove ESP-IDF, please follow :ref: `idf-tools-uninstall` .