esptool make_image python error
Posted: Wed Sep 16, 2020 6:23 pm
Hello good people of Espia
I am trying to make a standalone image which i could flash on another person computer (upload and remotely flash the connected device...), using windows 10, esp-idf v4.2, python 3.7, the program compiles and debug is working, also idf.py build is working correctly
Is using the esptool the way to go? also, in case a fix is not available at hand, is there another way to perform the operation?
Big thanks
esptool.exe --chip esp32 make_image wifi_station.elf
esptool.py v2.8
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\SysGCC\esp32\python_env\idf4.2_py3.7_env\Scripts\esptool.exe\__main__.py", line 7, in <module>
File "c:\sysgcc\esp32\python_env\idf4.2_py3.7_env\lib\site-packages\esptool.py", line 3194, in _main
main()
File "c:\sysgcc\esp32\python_env\idf4.2_py3.7_env\lib\site-packages\esptool.py", line 2965, in main
operation_func(args)
File "c:\sysgcc\esp32\python_env\idf4.2_py3.7_env\lib\site-packages\esptool.py", line 2453, in make_image
if len(args.segfile) == 0:
TypeError: object of type 'NoneType' has no len()
I am trying to make a standalone image which i could flash on another person computer (upload and remotely flash the connected device...), using windows 10, esp-idf v4.2, python 3.7, the program compiles and debug is working, also idf.py build is working correctly
Is using the esptool the way to go? also, in case a fix is not available at hand, is there another way to perform the operation?
Big thanks
esptool.exe --chip esp32 make_image wifi_station.elf
esptool.py v2.8
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\SysGCC\esp32\python_env\idf4.2_py3.7_env\Scripts\esptool.exe\__main__.py", line 7, in <module>
File "c:\sysgcc\esp32\python_env\idf4.2_py3.7_env\lib\site-packages\esptool.py", line 3194, in _main
main()
File "c:\sysgcc\esp32\python_env\idf4.2_py3.7_env\lib\site-packages\esptool.py", line 2965, in main
operation_func(args)
File "c:\sysgcc\esp32\python_env\idf4.2_py3.7_env\lib\site-packages\esptool.py", line 2453, in make_image
if len(args.segfile) == 0:
TypeError: object of type 'NoneType' has no len()