mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
648 stars 212 forks source link

Interrupt wdt timeout on CPU0 on ESP32-C3 #962

Closed dheckl closed 4 months ago

dheckl commented 5 months ago

I am trying to use a LOLIN C3 Pico instead of a LOLIN D32 for my use case. I am not able to get lmic run on ESP32-C3. I always get the following kernel panic, also without connecting any peripherals to the board. The below log is shown when running ttn-otaa.ino. Any ideas why?

Starting
FAILURE 
.pio/libdeps/esp32/MCCI LoRaWAN LMIC library/src/lmic/oslmic.c:53
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0). 

Core  0 register dump:
MEPC    : 0x42004354  RA      : 0x42004354  SP      : 0x3fc956c0  GP      : 0x3fc8bc00  
TP      : 0x3fc8b1e8  T0      : 0x62696c2f  T1      : 0x40386be4  T2      : 0x6f69702e  
S0/FP   : 0x3fc8d000  S1      : 0x00000035  A0      : 0x00000001  A1      : 0x00000000  
A2      : 0x00000000  A3      : 0x00000004  A4      : 0x00000001  A5      : 0x3fc8e7b0  
A6      : 0xfa000000  A7      : 0x00000003  S2      : 0x3c030418  S3      : 0x00000000  
S4      : 0x00000000  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x20494343  T4      : 0x4d2f3233  T5      : 0x7073652f  T6      : 0x73706564  
MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000018  MTVAL   : 0x0000a001  
MHARTID : 0x00000000  

Stack memory:
3fc956c0: 0x00000000 0x3fc8e000 0x3fc8d000 0x42000420 0x00000000 0x00000000 0x00000000 0x42005f62
3fc956e0: 0x00000000 0x00000000 0x00000000 0x403874b8 0x00000000 0x00000000 0x00000000 0x00000000
3fc95700: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x00000160 0xabba1234
3fc95720: 0x00000154 0x3fc95610 0x00000fb4 0x3fc8dcfc 0x3fc8dcfc 0x3fc95724 0x3fc8dcf4 0x00000018
3fc95740: 0x174f17d8 0x055569ea 0x3fc95724 0x00000000 0x00000001 0x3fc93714 0x706f6f6c 0x6b736154
3fc95760: 0xb5b11300 0x00fea3c4 0x00000000 0x3fc95710 0x00000001 0x00000000 0x00000000 0x00000000
3fc95780: 0x00000000 0x3fc8f7b4 0x3fc8f81c 0x3fc8f884 0x00000000 0x00000000 0x00000001 0x00000000
3fc957a0: 0x00000000 0x00000000 0x4201b4fc 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc957c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc957e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc95800: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc95820: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc95840: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc95860: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x5d000000 0xbaad5678 0x00000060
3fc95880: 0xabba1234 0x00000054 0x00000000 0x3fc95888 0x00000000 0x00000000 0x00000000 0x3fc958a0
3fc958a0: 0xffffffff 0x3fc958a0 0x3fc958a0 0x00000000 0x3fc958b4 0xffffffff 0x3fc958b4 0x3fc958b4
3fc958c0: 0x00000001 0x00000001 0x00000000 0xc000ffff 0x00000000 0xb33fffff 0x00000000 0xbaad5678
3fc958e0: 0x00000160 0xabba1234 0x00000154 0x3fc95940 0x3fc95940 0x3fc95a40 0x3fc95a3f 0x00000000
3fc95900: 0x3fc95904 0xffffffff 0x3fc95904 0x3fc95904 0x00000000 0x3fc95918 0xffffffff 0x3fc95918
3fc95920: 0x3fc95918 0x00000000 0x00000100 0x00000001 0x9d00ffff 0x00000000 0xb33fffff 0x00000000
3fc95940: 0xdf678c3c 0xc38e9c42 0xa91e2eec 0x596aee25 0x915c56e9 0x2a66e2ce 0xb1e9d339 0x63ffe4b6
3fc95960: 0xaaa5fe5b 0xd5f1ddfc 0xd906eef4 0xe22fbf58 0x922f6c59 0xbc2c9536 0x49cf9ff7 0x92d2171c
3fc95980: 0xde64dd18 0xb8339bde 0x4f670a3d 0xfd0a8dac 0xeae9af52 0x8aa02059 0xc65ced9a 0x37797835
3fc959a0: 0xab9570f2 0xeaab3be9 0xd16a4ae6 0x8551fbc4 0xb4afcf87 0x7180c677 0x4a1fe224 0x3f053d19
3fc959c0: 0x57df790d 0x93ff771c 0x211dbc01 0x6146be90 0x2e446732 0x623cd275 0x343e6a72 0x6134a8fd
3fc959e0: 0xa5dce5db 0xdbaf801a 0xb39b3e09 0xf3d194d9 0xf5086738 0xed468fe7 0x6a87c98b 0xc5ae6aaf
3fc95a00: 0x47c685d7 0x89504b3c 0x2bfc11a9 0x21204a4c 0x7ca59bfc 0xe712c391 0xd97d961e 0x872ca6a7
3fc95a20: 0xf4b7df49 0x0f13ca73 0x4bbd3d7b 0x51bb5437 0xf788bf08 0x9145b449 0xea65fb3b 0xccf49e6e
3fc95a40: 0xbaad5678 0x000000f8 0xabba1234 0x000000ec 0x00000100 0x00000100 0x00000002 0x403847d4
3fc95a60: 0x403842ca 0x40383bbe 0x40384778 0x4038475c 0x3fc95ba3 0x3fc95ba3 0x3fc95ba3 0x3fc95ba3
3fc95a80: 0x3fc95b4c 0x3fc95c4c 0x00000000 0x3fc95a8c 0x3fc95a8c 0x3fc95a8c 0x3fc95a8c 0x00000000
3fc95aa0: 0x3fc95aa4 0xffffffff 0x3fc95aa4 0x3fc95aa4 0x00000000 0x3fc95ab8 0xffffffff 0x3fc95ab8

ELF file SHA256: e51e1af0db7c6e18

Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xf (SPI_FAST_FLASH_BOOT)
Saved PC:0x40381838
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x90c
load:0x403ce710,len:0x2624
entry 0x403cc710
Disconnected (read failed: [Errno 6] Device not configured)

Environment