ESP32 window 环境配置 2021.02.14

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.首先

下载Git .
下载Python.

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 报错

Github issue

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

哈哈
以上。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值