Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Eyal
#14552 I did not know about the mapfile so did not save it (I will keep it from now on).
I do have the latest mapfile in the build so here are the details.
The exception I get is this:

Code: Select allFatal exception (29):
epc1=0x40222768, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000040, depc=0x00000000

the 'excvaddr' is either 40 or 42.
Looking at app/mapfile

Code: Select all0x0000000040222740                pm_wait4wakeup
0x0000000040222778                pm_open_rf

In these tests I avoided dsleep and instead used

Code: Select alltmr.alarm(2, 3000, function()
    node.restart()
end)

which is lua's asking for a restart after a 3 second delay. I get the same exception report with the plain deep sleep.

HTH
User avatar
By hreintke
#14558 LS,
I am using different framework (sming) and getting different exception (Fatal exception (28)) but I think finding the function in which it occurs would be the same as proposed here.

Questions :
- What would be the "execption reason" indicated by 28 ?
- What step should/can I take to produce a mapfile ?

Herman
User avatar
By cal
#14561 Moin,

look for xtensa doc ref above which defines causes.

28 means "LoadProhibitedCause"
"A load referenced a page mapped with an
attribute that does not permit loads [Region
Protection Option or MMU Option]"
So the "load" to the store (29 - StoreProhibitedCause)

Mapfile is produced by linker if requested by linker (ld).
Nodemcu linker step has it enabled
Code: Select allxtensa-lx106-elf-gcc -Wl,--undefined=pm_wait4wakeup -Wl,--wrap=pm_wait4wakeup -L../lib -Wl,--gc-sections -Xlinker -Map=mapfile -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lmain -ljson -lsmartconfig -lssl user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a lwip/.output/eagle/debug/lib/liblwip.a json/.output/eagle/debug/lib/libjson.a upgrade/.output/eagle/debug/lib/libupgrade.a platform/.output/eagle/debug/lib/libplatform.a libc/.output/eagle/debug/lib/liblibc.a lua/.output/eagle/debug/lib/liblua.a coap/.output/eagle/debug/lib/coap.a mqtt/.output/eagle/debug/lib/mqtt.a u8glib/.output/eagle/debug/lib/u8glib.a smart/.output/eagle/debug/lib/smart.a wofs/.output/eagle/debug/lib/wofs.a spiffs/.output/eagle/debug/lib/spiffs.a cjson/.output/eagle/debug/lib/libcjson.a modules/.output/eagle/debug/lib/libmodules.a -Wl,--end-group -lm -o .output/eagle/debug/image/eagle.app.v6.out


I don't know anything about sming.

hreintke wrote:LS,
I am using different framework (sming) and getting different exception (Fatal exception (28)) but I think finding the function in which it occurs would be the same as proposed here.

Questions :
- What would be the "execption reason" indicated by 28 ?
- What step should/can I take to produce a mapfile ?

Herman
User avatar
By xgulmenx
#59115 Hello, I have a problem with NodeMCU 12E.
It works in AP mode, everything is fine. But when i try to use in STA mode (Wifi_scan example), i get some errors from serial port.

Code: Select allload 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
ÿ
Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3ffef130 end: 3ffef460 offset: 01a0
>>>stack>>>
3ffef2d0:  00000484 00000484 000003fd 401004f4 
3ffef2e0:  00000000 00001000 000003fd 40106ff8 
3ffef2f0:  40004b31 3ffef320 0000001c 4021a10d 
3ffef300:  40105666 4021a1f5 3fff01f4 000003ff 
3ffef310:  000003fd 3ffef3c0 3fff01f4 000003fd 
3ffef320:  ffffff00 55aa55aa 0000000b 0000001c 
3ffef330:  0000001c 00000026 000000e4 000003ff 
3ffef340:  4021a5e4 3fff01f4 3fff01f4 000000ff 
3ffef350:  00000001 3ffef3e0 4021a76b 00000008 
3ffef360:  3fff01f4 000000ff 3ffef3c0 00000000 
3ffef370:  3fff02b4 3ffef421 00000001 4021a7f8 
3ffef380:  3ffef3c0 3fff01f4 3fffdad0 3ffee430 
3ffef390:  3ffef3e0 3fff652c 3fff01f4 3fffdad0 
3ffef3a0:  4021a834 3ffee404 00000000 feefeffe 
3ffef3b0:  40201ec8 feefeffe feefeffe 0001c200 
3ffef3c0:  00000000 00000000 3ffee404 401004d8 
3ffef3d0:  feefeffe feefeffe 3fff01e4 40201a65 
3ffef3e0:  00000000 00000001 feefeffe feefeffe 
3ffef3f0:  feefeffe feefeffe feefeffe 0001c200 
3ffef400:  0000001c 00000000 3ffee404 402022c4 
3ffef410:  40219e5a 00000001 3ffee310 3fffdad0 
3ffef420:  40201d23 feefeffe feefeffe 3ffee430 
3ffef430:  3fffdad0 3ffee310 3ffee404 40201c1e 
3ffef440:  feefeffe 00000000 3ffee428 40202820 
3ffef450:  feefeffe feefeffe 3ffee440 40100718 
<<<stack<<<
ets Jan  8 2013,rst cause:2, boot mode:(3,0)


It was working before, It has started to give this error when i tried to communicate from serial port with other devices.
I have tried to get some information from EspExceptionDecoder but it doesn't work on my PC. so, I couldn't find any solution to fix it. What can be reason for this probem?