ESP-IDF Windows环境常见问题

4.


3. 配置WSL环境

  • 运行IDF路径下的./install.sh安装工具;然后运行. ./export.sh导入IDF环境。
  • 可能出现export.sh: line 2: $'\r': command not founddetect_python.sh: line 13: syntax error near unexpected token '$'do\r''等,是因为换行符问题。
  • 使用dos2unix修改下换行符,如dos2unix install.sh,同样修改export.sh./tools/detect_python.sh
  • 如果缺少cmake,像'cmake' must be available on the PATH to use idf.py,就sudo apt-get update,然后sudo apt-get install cmake
  • 如果idf.py -p /dev/ttyS3 flash失败,加入-b 115200调低波特率试试。

2. 切换不同版本IDF

Create a copy of the shortcut created by the ESP-IDF Tools Installer, and change the working directory of the new shortcut to the ESP-IDF directory you wish to use.
Alternatively, run cmd.exe, then change to the ESP-IDF directory you wish to use, and run export.bat. Note that unlike the previous option, this way requires Python and Git to be present in PATH. If you get errors related to Python or Git not being found, use the first option.


1. 最简单地配置环境

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值