首先安装环境依赖
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
然后从vscode官方下载安装vscode,安装完成后安装espressif idf插件
在配置时选择espressif官方源进行安装配置
配置完成后设置使用命令配置环境变量
export PATH=/home/你的用户名/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin:$PATH
export IDF_PATH=/home/user/esp/esp-idf
配置好后打开一个工程进行编译测试,如果出现:
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
Diagnostic information:
IDF_PYTHON_ENV_PATH: (not set)
Python interpreter used: /usr/bin/python
Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
PATH: /home/ruixiang/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
make: *** 没有规则可制作目标“check_python_dependencies”,由“all” 需求。 停止。
使用以下命令进行解决
python -m pip install --user -r $IDF_PATH/requirements.txt
« debian安装lxde桌面最小环境
|
debian安装jdk»
|