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

User avatar
By ampakinetic
#25276 Hi CHERTS! I really appreciate your work, thank you for wrapping the SDK and Eclipse together for ESP development.

I'd like to build the latest nodeMCU with the big RAM improvements, but I'm getting a lot of errors or non working firmware with the current Github sources. Would you mind updating the NodeMCU example?

I've got the dev branch building without errors now, but on boot up getting

ets Jan 8 2013,rst cause:1, boot mode:(3,7)

ets_main.c

at 74880 baud.
Last edited by ampakinetic on Fri Aug 07, 2015 5:05 pm, edited 1 time in total.
User avatar
By hdrut
#25283 Go to Makefile and change esptool from NEW to OLD.

Cheers

Horacio

Def wrote:Hi

I'm using CHERTS Version 2.0.7, everything is compiling but I have problem with flashing. The first file is flashing (blue led is blinking) after this the esp is crashing, blue led is on. It's sending me this:

Code: Select allFatal exception (0):
epc1=0x4024065c, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x4024065c, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000


The only thing i can do is erase_flash via esp_tool

Here is a log:
Code: Select allmingw32-make.exe -f D:/avr/ESP8266-test/Makefile flash
c:/Espressif/utils/esptool-ck.exe -cp COM5 -cd ck -ca 0x00000 -cf firmware/eagle.flash.bin -v
esptool v0.4.5-1-g5eb6f2d - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
opening bootloader
resetting board
trying to connect
trying to connect
Uploading 27568 bytes from firmware/eagle.flash.bin to flash at 0x00000000
...........................
starting app without reboot
closing bootloader
c:/Espressif/utils/esptool-ck.exe -cp COM5 -cd ck -cb 256000 -ca 0x40000 -cf firmware/eagle.irom0text.bin -v
esptool v0.4.5-1-g5eb6f2d - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
opening bootloader
resetting board
trying to connect
trying to connect
trying to connect
resetting board
trying to connect
trying to connect
trying to connect
resetting board
trying to connect
trying to connect
trying to connect
warning: espcomm_sync failed
error: espcomm_open failed
D:/avr/ESP8266-test/Makefile:202: recipe for target 'flash' failed
mingw32-make.exe: *** [flash] Error -1
User avatar
By Def
#25641 It helped but i can't compile with OLD esptool. Anyway it's rebooting and i can see only bootloader message:

Code: Select all ets Jan  8 2013,rst cause:1, boot mode:(3,7)


ATM I'm using new makefiles form CHERTS github repo but again i get boot (3,7). I'm powering my module from LM1117 which can provide max 800mA, so i think power is ok. The weird thing is I can use arduino esp8266 platform and it's working perfectly :D
User avatar
By hdrut
#25650 What exactly is your problem? You said you couldn't flash the bins...
If changing to OLD helped, and Arduino platform is working, then you have a code issue you have to debug, or a config issue in the Makefile.





Def wrote:It helped but i can't compile with OLD esptool. Anyway it's rebooting and i can see only bootloader message:

Code: Select all ets Jan  8 2013,rst cause:1, boot mode:(3,7)


ATM I'm using new makefiles form CHERTS github repo but again i get boot (3,7). I'm powering my module from LM1117 which can provide max 800mA, so i think power is ok. The weird thing is I can use arduino esp8266 platform and it's working perfectly :D