Page 1 of 1

Compile ESP8266 firmware, tries to upload firmware?

Posted: Mon Aug 22, 2022 12:03 am
by Jibun no kage
Compile ESP8266 firmware, tries to upload firmware? Is there an option or configuration file I can set to stop this from being attempted, or am I reading the output wrong? I am setting up everything in a virtual machine, and plan to copy bin files to a different system. So I just want to compile the given port and be done at this point, don't want esptool.py script to attempt to run.

LINK build-GENERIC/firmware.elf
text data bss dec hex filename
631984 996 66376 699356 aabdc build-GENERIC/firmware.elf
Create build-GENERIC/firmware-combined.bin
File "/home/crosstoolng/esp-open-sdk/xtensa-lx106-elf/bin/esptool.py", line 128
print 'Connecting...'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Connecting...')?
make: *** [Makefile:216: build-GENERIC/firmware-combined.bin] Error 1

Re: Compile ESP8266 firmware, tries to upload firmware?

Posted: Mon Aug 22, 2022 12:37 am
by jimmo
Jibun no kage wrote:
Mon Aug 22, 2022 12:03 am
Compile ESP8266 firmware, tries to upload firmware?
What make command line are you using?

Does it have "deploy" on the end (if so, remove it).

Re: Compile ESP8266 firmware, tries to upload firmware?

Posted: Mon Aug 22, 2022 5:21 pm
by Jibun no kage
No, no deploy, it is an odd error in the older version of esptool.py I had, and did not realize initially how old the esptool.py version was. The error was misleading, it was just outdated, a syntax issue in python script code that happen to fail at or in the 'deploy' logic of the script. The script was python2 based, and python3 was choking on it.