I m trying to use the arduino IR remote library v2.0.1 esp-idf v 4.2.
In IR remote mostly 3 or 4 files are used like ( esp-hal-timer.c.h, esp32-hal-gpio.c.h, esp32-ledc-gpio.c.h, esp32-hal.h esp32-hal-matrix.c.h)
which is easy to use with idf with some modification.
So, i tried and got little succes in that. But after receiving it giving following error
.
Code: Select all
E (40391) timer_group: timer_enable_intr(415): HW TIMER NEVER INIT ERROR
E (40391) timer_group: timer_get_config(362): HW TIMER NEVER INIT ERROR
E (40391) timer_group: timer_get_alarm_value(180): HW TIMER NEVER INIT ERROR
E (40401) timer_group: timer_isr_callback_add(234): HW TIMER NEVER INIT ERROR
Also, at first time I m able to receive but when I m trying to receive second time, system got crash
Log:
At first receive..
Code: Select all
--------please press remote button------
W (35291) esp32-hal-timer.c: EDGE timer interrupt is not supported! Setting to LEVEL...
I (39311) IRremote_main.cpp: raw length: 68
Protocol: NEC Data: 0x40BF18E7 (32 bits)
Timing[67]:
+8850, -4650 + 450, - 600 + 500, -1800 + 500, - 600
+ 450, - 600 + 500, - 600 + 500, - 600 + 450, - 600
+ 500, - 600 + 500, -1800 + 500, - 600 + 450, -1800
+ 500, -1800 + 500, -1500 + 500, -1800 + 500, -1800
+ 500, -1800 + 450, - 600 + 500, - 600 + 500, - 600
+ 450, -1850 + 450, -1800 + 500, - 600 + 500, - 600
+ 450, - 600 + 500, -1800 + 500, -1800 + 500, -1800
+ 500, - 600 + 450, - 600 + 500, -1800 + 500, -1800
+ 500, -1800 + 450
unsigned int rawData[67] = {8850,4650, 450,600, 500,1800, 500,600, 450,600, 500,600, 500,600, 450,600, 500,600, 500,1800, 500,600, 450,1800, 500,1800, 500,1500, 500,1800, 500,1800, 500,1800, 450,600, 500,600, 500,600, 450,1850, 450,1800, 500,600, 500,600, 450,600, 500,1800, 500,1800, 500,1800, 500,600, 450,600, 500,1800, 500,1800, 500,1800, 450}; // NEC 0x40BF18E7
unsigned int data = 0x40BF18E7
I (39391) IRremote_main.cpp:
E (40391) timer_group: timer_enable_intr(415): HW TIMER NEVER INIT ERROR
E (40391) timer_group: timer_get_config(362): HW TIMER NEVER INIT ERROR
E (40391) timer_group: timer_get_alarm_value(180): HW TIMER NEVER INIT ERROR
E (40401) timer_group: timer_isr_callback_add(234): HW TIMER NEVER INIT ERROR
Code: Select all
W (48541) esp32-hal-timer.c: EDGE timer interrupt is not supported! Setting to LEVEL...
Guru Meditation Error: Core 0 panic'ed (Coprocessor exception).
Core 0 register dump:
PC : 0x70795467 PS : 0x00060032 A0 : 0x6c000000 A1 : 0x3ffbec20
A2 : 0x3fff2a64 A3 : 0x00000000 A4 : 0x00060b23 A5 : 0x00000000
A6 : 0x3ffdbf70 A7 : 0x00060b23 A8 : 0x80089ae7 A9 : 0x0a0800e0
A10 : 0x3fff0065 A11 : 0xffffffff A12 : 0x8008fcd3 A13 : 0x3fff9130
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000020 EXCCAUSE: 0x00000004
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0xffffffff
Core 0 was running in ISR context:
EPC1 : 0x70795467 EPC2 : 0x40091808 EPC3 : 0x00000000 EPC4 : 0x00000000
0x40091808: vTaskExitCritical at /home/horsemann/Desktop/WorkSpace/universalRemote_v202107/build/../freertos/freertos_kernel/tasks.c:4388
Backtrace:0x70795464:0x3ffbec20 |<-CORRUPTED
ELF file SHA256: ab7943761fc186fc