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

User avatar
By Maruno
#39558 I'm having issues getting basic programs running on my ESP8266. I've tried with really basic code that just prints some lines to trying to connect to the network, always resulting in some quick successive reboots from the module and eventually stalling completely. Output on start:

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

load 0x40100000, len 25288, room 16
tail 8
chksum 0xd3
load 0x3ffe8000, len 920, room 0
tail 8
chksum 0xb6
load 0x3ffe83a0, len 680, room 0
tail 8
chksum 0xe7
csum 0xe7
pp_task_hdl : 3ffef540, prio:13, stack:512
pm_task_hdl : 3ffefe10, prio:1, stack:176
tcpip_task_hdl : 3ffef2c0, prio:10,stack:512
idle_task_hdl : 3ffef360,prio:0, stack:176
tim_task_hdl : 3fff1488, prio:2,stack:256
xPortStartScheduler
frc2_timer_task_hdl:3fff1998, prio:12, stack:512

OS SDK ver: 1.3.0(68c9e7b) compiled @ Nov  2 2015 18:53:21
phy ver: 484, pp ver: 9.9

Connecting to network...
mode : sta(5c:cf:7f:12:13:75)
add if0
f r0, ?@*r??P???K?t?dr?.@??.?Ѫ?Ko8a /t?$v'!?(P??,?????P?-?@??*????nzAl )?m~?t[!?(P?+t?,?@j|??*??*???nzAl )?m~?p%!?(P?+t?mP@j|??@??*???nzAl )?m~?v%?r?(?d????+P?*??h?*?Dr


Sometimes an extra fatal exception is printed before the gibberish:

Code: Select allFatal exception (9):
epc1=0x40261bbc
epc2=0x00000000
epc3=0x401006a8
epcvaddr=0x3ffe802b
depc=0x40101b03


0x40261bbc in a disassembly seems to be ppTask, which looks like a method from the RTOS SDK related to WiFi? I don't know where I could continue with this issue to try and get code on my ESP8266 working, does anyone have any idea what could be wrong?