esptool make_image python error

mazorsk
Posts: 8
Joined: Mon Aug 24, 2020 1:49 pm

esptool make_image python error

Postby mazorsk » 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()

mazorsk
Posts: 8
Joined: Mon Aug 24, 2020 1:49 pm

Re: esptool make_image python error

Postby mazorsk » Mon Sep 21, 2020 4:17 pm

Any replies would be very much appreciated, is there another way to approach the matter in question? thank you

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: esptool make_image python error

Postby ESP_Roland » Tue Sep 22, 2020 9:13 am

Hi mazorsk,

Here is the documentation for make_image: https://github.com/espressif/esptool/wi ... make_image

Please try elf2image instead: https://github.com/espressif/esptool#co ... -elf2image

Who is online

Users browsing this forum: Google [Bot] and 89 guests