IRMP-org / IRMP

Infrared Multi Protocol Decoder
GNU General Public License v3.0
267 stars 43 forks source link

setting IRMP_LOGGING to 1 in irmpconfig.h crashes ESP32 #84

Closed societyofrobots closed 4 months ago

societyofrobots commented 1 year ago

I have a Samsung 2022 TV, which uses some new unknown IR protocol, so I'm trying to decode it.

According to this tutorial, I should set IRMP_LOGGING to 1 in irmpconfig.h.

ESP32 v2.0.9, IRMP 3.6.3, on a custom ESP32 hardware board, compiler for: ESP32 Wrover Module partition scheme default 4mb with SPIFFS, QIO, 115200 baud SimpleReceiver demo program, unmodified (other than pins). standard universal IR remote

It blows up as soon as I push a button on the remote.

No crashing occurs if logging is set to 0.

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13924
ho 0 tail 12 room 4
load:0x40080400,len:3600
entry 0x400805f0
E (108) psram: PSRAM ID read error: 0xffffffff
[    27][W][esp32-hal-psram.c:71] psramInit(): PSRAM init failed!
START C:\Users\palmi\Documents\Arduino\SimpleReceiver\SimpleReceiver.ino from Jun 23 2023
Using library version 3.6.3
Ready to receive IR signals of protocols: NEC, APPLE, ONKYO, at pin 19
0000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111110000000001111111111111Guru Meditation Error: Core  1 panic'ed (Interrupt wdt timeout on CPU1). 

Core  1 register dump:
PC      : 0x4008c4fe  PS      : 0x00060135  A0      : 0x8008b476  A1      : 0x3ffbf10c  
A2      : 0x3ffb897c  A3      : 0x3ffb81a4  A4      : 0x00000004  A5      : 0x00060123  
A6      : 0x00060123  A7      : 0x00000001  A8      : 0x3ffb81a4  A9      : 0x00000018  
A10     : 0x3ffb81a4  A11     : 0x00000018  A12     : 0x00000004  A13     : 0x00060123  
A14     : 0x007bf328  A15     : 0x003fffff  SAR     : 0x00000013  EXCCAUSE: 0x00000006  
EXCVADDR: 0x00000000  LBEG    : 0x40087ce5  LEND    : 0x40087cf5  LCOUNT  : 0xfffffffe  
Core  1 was running in ISR context:
EPC1    : 0x400dc08b  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x00000000

Backtrace: 0x4008c4fb:0x3ffbf10c |<-CORRUPTED

Core  0 register dump:
PC      : 0x4008c69b  PS      : 0x00060035  A0      : 0x8008b09f  A1      : 0x3ffbea4c  
A2      : 0x3ffbf328  A3      : 0xb33fffff  A4      : 0x0000abab  A5      : 0x00060023  
A6      : 0x00060021  A7      : 0x0000cdcd  A8      : 0x0000abab  A9      : 0xffffffff  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x3ffc2b58  A13     : 0x00000007  
A14     : 0x007bf328  A15     : 0x003fffff  SAR     : 0x0000001d  EXCCAUSE: 0x00000006  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000

Backtrace: 0x4008c698:0x3ffbea4c |<-CORRUPTED

ELF file SHA256: 63c35f8c3ca49fc0

Rebooting...
ets Jul 29 2019 12:21:46
ArminJo commented 4 months ago

The tutorial is NOT for Arduino!