Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By CARPP
#54521 I don't think so. I rather think those "$(vecho)" are just printing something to the command line (because the text is in quotes).
I changed it to:

$(vecho) "esp_init_data_default.bin-------->0x3f000"


but that didn't help. Or am i wrong?

If i replace my code with your code:

# FLASH SIZE
flashinit:
$(vecho) "Flash init data default and blank data."
$(ESPTOOL) -p $(ESPPORT) write_flash $(flashimageoptions) 0x3fc000 $(SDK_BASE)/bin/esp_init_data_default.bin 0x3fe000 $(SDK_BASE)/bin/blank.bin


i get this error while flashing:

Traceback (most recent call last):
File "esptool.py", line 618, in <module>
IOError: [Errno 2] No such file or directory: 'firmware/0x40000.bin'
C:/Users/Max/Documents/Eclipse_Workspace/MyTestProject/Makefile:221: recipe for target 'flash' failed
mingw32-make.exe: *** [flash] Error 255
User avatar
By hdrut
#54528
CARPP wrote:I don't think so. I rather think those "$(vecho)" are just printing something to the command line (because the text is in quotes).
I changed it to:

$(vecho) "esp_init_data_default.bin-------->0x3f000"


but that didn't help. Or am i wrong?

If i replace my code with your code:

# FLASH SIZE
flashinit:
$(vecho) "Flash init data default and blank data."
$(ESPTOOL) -p $(ESPPORT) write_flash $(flashimageoptions) 0x3fc000 $(SDK_BASE)/bin/esp_init_data_default.bin 0x3fe000 $(SDK_BASE)/bin/blank.bin


i get this error while flashing:

Traceback (most recent call last):
File "esptool.py", line 618, in <module>
IOError: [Errno 2] No such file or directory: 'firmware/0x40000.bin'
C:/Users/Max/Documents/Eclipse_Workspace/MyTestProject/Makefile:221: recipe for target 'flash' failed
mingw32-make.exe: *** [flash] Error 255



You are right.

Have you tried running flashinit routine before flash?
User avatar
By CARPP
#54530
Have you tried running flashinit routine before flash? - See more at: posting.php?mode=reply&f=9&t=820#sthash.5l6hOaBK.dpuf

I tried to enter this command manually in the windows console:

esptool.exe -p COM4 write_flash -ff 26m \ 0x3e000 c:/Espressif/ESP8266_SDK/bin/blank.bin \ 0x3fc000 c:/Espressif/ESP8266_SDK/bin/esp_init_data_default.bin \ 0x3fe000 c:/Espressif/ESP8266_SDK/bin/blank.bin


I don't know which value flashimageoptions has because there are a lot of if and else branches in the manifest so i just took it as "ff 26m" (I don't know if that's correct?). But i got this error in the console:

Connecting...
Traceback (most recent call last):
File "esptool.py", line 607, in <module>
assert len(args.addr_filename) % 2 == 0
AssertionError


What did espressif change that the makefile doesn't work anymore?
User avatar
By hdrut
#54531 Try running (modify COM port) :

c:/Espressif/utils/ESP8266/esptool.exe -p COM6 write_flash -ff 40m -fm qio -fs 32m 0x3fc000 c:/Espressif/ESP8266_SDK/bin/esp_init_data_default.bin 0x3fe000 c:/Espressif/ESP8266_SDK/bin/blank.bin


Hope it helps.