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

User avatar
By Necromant
Allex wrote:Hello Necromant
I've just loaded the new bin and wanted to try
I get an endless loop with this error message:

Frankenstein ESP8266 Firmware
Powered by Antares 0.2-rc1, Insane Mushroom
(c) Andrew 'Necromant' Andrianov 2014 <andrew@ncrmnt.org>
This is free software (where possible), published under the terms of GPLv2

Memory Layout:
data : 0x3ffe8000 ~ 0x3ffe8aa4, len: 2724
rodata: 0x3ffe8ab0 ~ 0x3ffea158, len: 5800
bss : 0x3ffea158 ~ 0x3fff1580, len: 29736
heap : 0x3fff1580 ~ 0x3fffc000, len: 43648

=== Press enter to activate this console ===
Fatal exception (29):
epc1=0x40241122, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000a8, depc=0x00000000

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

wdt reset
load 0x40100000, len 27520, room 16
tail 0
chksum 0x18
load 0x3ffe8000, len 2724, room 8
tail 12
chksum 0x84
ho 0 tail 12 room 4
load 0x3ffe8ab0, len 5800, room 12
tail 12
chksum 0x19
csum 0x19

My board is ESP-2
I think your working class
regards Allex

Hm, looks like printing out lots of text takes too much time and watchdog resets the whole thing. I'll see if I can fix this and post an update ASAP
User avatar
By Necromant
picpic020960 wrote:Bonjour ,

good project

is the github and makefile compatible with the toolchaine describe in 'compiler chat/official gcc compiler VM from espressif' topic ?


I've used toolchain built via crosstool-ng from esp8266-wiki.

Here are quick steps to compile it yourself:
* Install the toolchain, esptool and esptool.py, follow instructions on the wiki.
* Install antares, follow this doc. But checkout experimental branch. 'git checkout experimental' in antares dir.
* Clone and build frankenstein. xtensa-lx106-elf-* tools and esptool should be in your $PATH. If you have a different cross-compiler prefix - adjust in make menuconfig -> Toolchain settings.
Code: Select allgit clone git@github.com:nekromant/esp8266-frankenstein.git
cd esp8266-frankenstein
make #it will symlink antares into the directory
make menuconfig/nconfig #configure. Not much can be configured right now, so you can skip this step
make build

You'll find binaries in images/ directory. antares-0x0000.bin and antares-0x40000.bin. Antares is tested and working in linux and (less tested) on mac, windows users are out of luck for now.