How to set up the software development environment ESP-IDF for ESP32

本文详细介绍如何在Ubuntu和Windows环境下配置ESP32的软件开发环境。针对Ubuntu环境,推荐使用ESP-IDF进行编译,并提供了详细的安装步骤;对于Windows环境,则推荐使用快速设置工具一键安装ESP-IDF构建环境。

This blog will be divided into two parts:

  1. Configure ESP32 software development environment on Ubuntu
  2. Configure ESP32 software development environment on Windows

1 Configure ESP32 software development environment on Ubuntu

We recommend that you use Ubuntu environment to set up the ESP-IDF compilation environment. Compiling on Ubuntu is faster. The steps for setting up an environment on Ubuntu18.04 are as follows :

Step 1: Install Prerequisites

sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0

Step 2: Get ESP-IDF

mkdir -p ~/esp

cd ~/esp

git clone -b release/v4.3 --recursive https://github.com/espressif/esp-idf.git

cd esp-idf

git submodule update --init -f --recursive

Step 3: Set up the tools

cd ~/esp/esp-idf

./install.sh

Step 4: Set up the environment variables

cd esp-idf 

pwd

export IDF_PATH=$(pwd)

. ./export.sh

Step 5:Start a Project

cd ~/esp-idf/examples/get-started/hello_world

idf.py menuconfig

idf.py build

idf.py flash monitor

2 Configure ESP32 software development environment on Windows

If you are using a Windows environment, we recommend that you use the Quick Setup Tool to install the ESP-IDF build environment with one click. Also, when selecting the ESP-IDF version, please select the latest release/v4.3 version.

在这里插入图片描述

Please use this:
在这里插入图片描述

在这里插入图片描述

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值