首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

ESP32在ubuntu下的开发环境的搭建

ESP-IDF在windows下编译的速度过慢,所以还是搭建一个Linux开发环境,速度快10倍。

1 安装基础工具

sudo apt-get install gcc git wget make libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-cryptography python-future

2. 下载编译链工具

3. 解压

4. 导出路径

export PATH="$HOME/esp/xtensa-esp32-elf/bin:$PATH"

5. 获取esp-idf

cd ~/esp

git clone -b v3.2 --recursive https://github.com/espressif/esp-idf.git

6. 导出开发框架库

export IDF_PATH=~/esp/esp-idf

7. 安装相应的依赖库

python -m pip install --user -r $IDF_PATH/requirements.txt

8. 复制例子

cp -r $IDF_PATH/examples/get-started/hello_world .

9.配置

cd hello_world

make menuconfig

10.编译

make 或者make all

11.烧录

make flash

12.查看运行结果

make monitor 或者make simple_monitor

monitor的一些操作:

Ctrl+]退出

Ctrl-T Ctrl-F重新烧录相当于 make flash

Ctrl-T Ctrl-A相当于 make app-flash

Ctrl-T Ctrl-R重启

Ctrl-T Ctrl-P暂停

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20190426A0NP8Y00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券
http://www.vxiaotou.com