ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Patriko
#15708 Hi!

Some files (e.g. css / png) when trying to serve cause Fatal exception (28).

Code: Select allCon req, conn=0x3fff6040, pool slot 0
Fatal exception (28):
epc1=0x40106d24, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
rm match
del if0
bcn 0
del if1
usl
sul 0 0

 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset


File size is e.g. 4 - 10 kb so I assume that the memory is not a reason.
What can cause the problem?

Thanks,
Patriko
User avatar
By cal
#18630 Just for reference:

28 means "LoadProhibitedCause"
"A load referenced a page mapped with an
attribute that does not permit loads [Region
Protection Option or MMU Option]"

Epc1 is the program counter where the exception occured and excvaddr is the address accessed.
Using the mapfile from the linker you typically can pinpoint the function of the problem and using objdump
you can locate the exact code position in c Code.

Hope that helps in the future,
Cal
User avatar
By crosofg
#54089 I have recieved following error.
Code: Select allMQTT Broker Unreachable!!
TCP connection closing
MQTT closed previous connection
MQTT start connection
Fatal exception 28(LoadProhibitedCause):
epc1=0x4022b5cf, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000010, depc=0x00000000


Following is the correesponding app0.map values
Code: Select all                0x4022aca8                wpa_auth_uses_mfp
 *fill*         0x4022acb6        0x2
 .irom0.text    0x4022acb8     0x14c0 c:/espressif/ESP8266_SDK/lib\libwpa.a(wpa.o)
                               0x16e8 (size before relaxing)
                0x4022bc44                wpa_sm_rx_eapol
                0x4022bdbc                wpa_register

I am attaching the objdump and .map files. Can please tell the steps to find out what causes error? This will really help everyone.
You do not have the required permissions to view the files attached to this post.