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

User avatar
By Markus Gritsch
#25066 Here's a follow-up: Wenn I connect at 74880 baud, I get the following output:


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

Fatal exception (0):
epc1=0x402222c4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x402222c4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x402222c4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x402222c4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
.
.
.

The 'Fatal exception' message prints endlessly. Any clues what's going on?

Thanks,
Markus
User avatar
By dorse
#25244 Does anyone have a Makefile that places the firmware in address 0x01000 and 0x41000 so that I can use a bootloader and hence OTA upgrades? I tried modifying the Makefile, but I havent had any luck in getting it to work.

Did anyone get the OTA working with CHERTS dev kit??
User avatar
By Def
#25267 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