乐鑫EP32_CAM linux 环境搭建篇

刚到ESP32,忍不住开始倒腾,怎奈我并不喜欢arduinoIDE,原因博主翻墙下载IDE过于麻烦,只能搭建linux环境

1.linux ubuntu 版本32位16.04:

2.下载ESP32 CAM_IDF Linux 版的 ESP32 工具链可以从 Espressif 的网站下载: 64-bit Linux: https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz 32-bit Linux: https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-80-g6c4433a-5.2.0.tar.gz

3.设置Linux环境变量

vi/etc/profile

添加:

#export PATH=$PATH:/opt/xtensa-esp32-elf/bin:

#export IDF_PATH=/opt/esp-idf-v3.1.3

编译前运行(激活编译连接) source /etc/profile

查看版本 xtensa-esp32-elf-gcc -v

4.编译工程

配置make menuconfig,主要串口和flash基本参数

make flash 下载

make monitor 打开串口打印,ctrl + ] 退出

在demo中配置WiFi账号密码即可链接网络打开视频,画面有点闪应该是网络延迟问题

DEMO链接:https://pan.baidu.com/s/1y5LCFt5C4QNOyEyzqKhMbQ 提取码:08f6

5.入门指南参考乐鑫IDF

经验分享 程序员 微信小程序 职场和发展