Exception (28):
epc1=0x401035a7 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000024 depc=0x00000000
So I googled and found some instructions on how to check the elf file with the objdump tool. If I have done things right, it looks like it went wrong within this block of code (presuming my elf file would be the same as his, else I have to ask to get his version):
40103580 <lmacProcessAckTimeout>:
40103580: f0c112 addi a1, a1, -16
40103583: 0109 s32i.n a0, a1, 0
40103585: feef85 call0 40102480 <lmacIsActive>
40103588: 02dc bnez.n a2, 4010359c <lmacProcessAckTimeout+0x1c>
4010358a: fbc821 l32r a2, 401024ac <lmacIsIdle+0x18>
4010358d: fbc831 l32r a3, 401024b0 <lmacIsIdle+0x1c>
40103590: e2a442 movi a4, 0x4e2
40103593: f7f501 l32r a0, 40101568 <ets_timer_setfn+0x1c>
40103596: 0000c0 callx0 a0
40103599: ffff06 j 40103599 <lmacProcessAckTimeout+0x19>
4010359c: fbb841 l32r a4, 4010247c <call_user_start_local+0x3c0>
4010359f: 000422 l8ui a2, a4, 0
401035a2: a438 l32i.n a3, a4, 40
401035a4: 30c442 addi a4, a4, 48
401035a7: 9308 l32i.n a0, a3, 36
So maybe this gives some clue about what happened: <lmacProcessAckTimeout> ??
Should I now somehow follow stack trace backwards to find the calling function(s) to get an idea where the sketch was running at that point?