- Sat Apr 11, 2015 6:46 am
#14166
Moin,
I finally managed to hack my esp 01 for dsleep and now I get the same exception.
I got the exception info from
Xtensa ®
Instruction Set Architecture (ISA)
Reference Manual
But something does not fit.
The epc1 does indicate a problem in epc1=0x40222768 which according to my mapfile is inside pm_wait4wakeup
(Ignore that its called "u2" instead of "up", I am playing with symbols.)
But at that location is no memory write???
pm_wait4wakeu2():
40222740: 021226 beqi a2, 1, 40222746 <pm_wait4wakeu2+0x6>
40222743: 2f2266 bnei a2, 2, 40222776 <pm_wait4wakeu2+0x36>
40222746: ff1851 l32r a5, 402223a8 <pm_rtc2usec+0x8>
40222749: 010522 l8ui a2, a5, 1
4022274c: 62ec bnez.n a2, 40222776 <pm_wait4wakeu2+0x36>
4022274e: b6bb21 l32r a2, 4021023c <_irom0_text_start+0x23c>
40222751: 0020c0 memw
40222754: 4a2232 l32i a3, a2, 0x128
40222757: 143030 extui a3, a3, 0, 2
4022275a: a3cc bnez.n a3, 40222768 <pm_wait4wakeu2+0x28>
4022275c: 0020c0 memw
4022275f: 4a2242 l32i a4, a2, 0x128
40222762: 144040 extui a4, a4, 0, 2
40222765: ff3416 beqz a4, 4022275c <pm_wait4wakeu2+0x1c>
40222768: 270c movi.n a7, 2
4022276a: 0020c0 memw
4022276d: 4a2262 l32i a6, a2, 0x128
40222770: 106670 and a6, a6, a7
40222773: 034562 s8i a6, a5, 3
40222776: f00d ret.n
Carsten