ESP32 window 环境配置 2021.02.01(使用 乐鑫官方 gitee库
ESP-IDF VS Code Extension 乱码
"xx” is not recognized as an internal or external command
是环境配置问题(py3.9和py3.8问题?)
官方给出新环境配置
Online installer (30 MB) : https://dl.espressif.com/dl/esp-idf-tools-setup-online-2.5.exe
Offline installer - contains v4.2 and v4.1.1 (810 MB): https://dl.espressif.com/dl/esp-idf-tools-setup-offline-2.5.exe
药到病除。。。。
(官方的快速入门指南)
国内使用GitHUb下载太慢了,
Windows下有一键安装包速度实际测试与GitHub差不多
转用gitee下载 下载开发环境与sdk。
1.首先
2.git clone
在同一目录下
git clone https://gitee.com/EspressifSystems/esp-gitee-tools
git clone https://gitee.com/EspressifSystems/esp-idf.git
3.在git bash 更新插件和直接安装编译环境
cd esp-gitee-tools
export ESP_PATH=$(pwd)
cd ../
mkdir .espressif
export IDF_TOOLS_PATH=$(pwd)/.espressif
cd ./esp-idf
git branch -a
git checkout -b v4.2
$ESP_PATH/submodule-update.sh
...
$ESP_PATH/install.sh
....
gitee问题总结如下:
0.git clone esp-idf 需要切换使用 git 切换版本稳定版本
1.python3.9.1 报错
Update: To get installation working with Windows Python 3.9, please
set the environment variable PIP_EXTRA_INDEX_URL to
https://dl.espressif.com/pypi then launch the installation again.
This is workaround. The solution will be included in the future
version of installer. It was necessary to build some Python Wheels
which were not ready for Windows. The wheels are stored on URL
mentioned above.
News
The problem with Python is solved by new installers:
Online installer (30 MB) :
https://dl.espressif.com/dl/esp-idf-tools-setup-online-2.5.exe Offline
installer - contains v4.2 and v4.1.1 (810 MB):
https://dl.espressif.com/dl/esp-idf-tools-setup-offline-2.5.exe The
solution is based on Embedded Python 3.8.7 and prepared package of
Python Wheels. windows 系统环境变量
**PIP_EXTRA_INDEX_URL https://dl.espressif.com/pypi
**
2.使用 git 对gitee 是 没有对 git ssh 初始化
#git init
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
#ssh的创建
ssh-keygen -t rsa -C "youremail@example.com"
git branch -a
git checkout -b v4.2
3.PowellShell 实现 Linux的export命令
修改默认安装在c盘的路径
$env:IDF_TOOLS_PATH="你路径"
$env:IDF_TOOLS_PATH
以上。。。