参考:史久超的博客
做了一些更正和更新。
首先需要安装pip和cmake。
sudo apt install python3-pip
sudo apt-get install cmake
…
更正及更新:
git checkout v4.0.2 => git checkout v4.4.3
Sudo chmod a+rwx micropython => sudo chmod a+rwx micropython
make submodule => make submodules
micropython 另外一个地址
git clone https://github.com/micropython/micropython.git
目前只发现这几点问题。感谢原博主的分享。
附idf.py 命令
idf.py -p /dev/ttyS4 flash
idf.py -p /dev/ttyS4 monitor
idf.py menuconfig
如果是win11 第一次运行ubuntu可能会出现 ERROR: 0x800701bc
在管理员权限下运行power shell:
wsl.exe --update
参考文章:
https://blog.csdn.net/baidu_33340703/article/details/107129169
https://www.cnblogs.com/horal/p/15613875.html
idf命令:
https://blog.csdn.net/weixin_41880709/article/details/127985925
常用的指令
. ~/esp-idf/export.sh
~/micropython/ports/esp32$
idf.py -p /dev/ttyS6 -b 115200 flash