$ 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
离线
看起来是缺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
试一试上面这样能不能解决?
离线
$ 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
离线
那现在问题来了, EFUSE可以多次编程吗?
离线