Compile ESP8266 firmware, tries to upload firmware?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Jibun no kage
Posts: 144
Joined: Mon Jul 25, 2022 9:45 pm

Compile ESP8266 firmware, tries to upload firmware?

Post by Jibun no kage » Mon Aug 22, 2022 12:03 am

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

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Compile ESP8266 firmware, tries to upload firmware?

Post by jimmo » Mon Aug 22, 2022 12:37 am

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).

Jibun no kage
Posts: 144
Joined: Mon Jul 25, 2022 9:45 pm

Re: Compile ESP8266 firmware, tries to upload firmware?

Post by Jibun no kage » Mon Aug 22, 2022 5:21 pm

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.

Post Reply