您尚未登录。

楼主 #1 2017-09-30 14:40:36

lixiaolai
会员
注册时间: 2017-09-18
已发帖子: 23
积分: 23

Windows环境烧写ESP32熔丝位(EFUSE)出错,请问如何解决?

$ python F:\\esp-idf\\components\\esptool_py\\esptool\\espefuse.py --port /dev/SOMEPORT read_protect_efuse KEY_STATUS
Traceback (most recent call last):
File "F:\esp-idf\components\esptool_py\esptool\espefuse.py", line 20, in <module>
import esptool
ImportError: No module named esptool

离线

#2 2017-09-30 14:42:01

晕哥
管理员
所在地: wechat: whycan_cn
注册时间: 2017-09-06
已发帖子: 9,473
积分: 9207

Re: Windows环境烧写ESP32熔丝位(EFUSE)出错,请问如何解决?

看起来是缺python库了,

$ python -m pip install esptool
Collecting esptool
Downloading esptool-2.1.tar.gz (68kB)
Requirement already satisfied: pyserial>=2.5 in d:/msys32/mingw32/lib/python2.7/site-packages (from esptool)
Collecting pyaes (from esptool)
Downloading pyaes-1.6.1.tar.gz
Collecting ecdsa (from esptool)
Downloading ecdsa-0.13-py2.py3-none-any.whl (86kB)
Installing collected packages: pyaes, ecdsa, esptool
Running setup.py install for pyaes: started
Running setup.py install for pyaes: finished with status 'done'
Running setup.py install for esptool: started
Running setup.py install for esptool: finished with status 'done'
Successfully installed ecdsa-0.13 esptool-2.1 pyaes-1.6.1

试一试上面这样能不能解决?





离线

#3 2017-09-30 15:25:40

晕哥
管理员
所在地: wechat: whycan_cn
注册时间: 2017-09-06
已发帖子: 9,473
积分: 9207

Re: Windows环境烧写ESP32熔丝位(EFUSE)出错,请问如何解决?

lixiaolai wrote:

$ python F:\\esp-idf\\components\\esptool_py\\esptool\\espefuse.py --port /dev/SOMEPORT read_protect_efuse KEY_STATUS
Traceback (most recent call last):
File "F:\esp-idf\components\esptool_py\esptool\espefuse.py", line 20, in <module>
import esptool
ImportError: No module named esptool

把这个 F:\\esp-idf\\components\\esptool_py\\esptool\\ 加到 /etc/profile的PATH环境变量,

export PATH=/mingw32/bin/:F:\\esp-idf\\components\\esptool_py\\esptool\\:$PATH

这样直接执行就可以了:

espefuse.py --port COM1 summary
espefuse.py --port COM1 dump
espefuse.py --port COM1 burn_efuse JTAG_DISABLE 1





离线

楼主 #4 2017-09-30 15:28:40

lixiaolai
会员
注册时间: 2017-09-18
已发帖子: 23
积分: 23

Re: Windows环境烧写ESP32熔丝位(EFUSE)出错,请问如何解决?

那现在问题来了, EFUSE可以多次编程吗?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn


东莞哇酷科技有限公司开发