Interrupts issue
Posted: Mon Jun 26, 2017 3:38 am
Im assuming its natural behaviour rather than bug, but i want to be sure. After few strange crashes of my program i tested it with gpio example and still crashing. I changed a little bit gpio example program to suit my needs:
- input pins aren't connected to output pins, but thru buttons with GND
- line 77 changed to
Now, long press button is crashing program.
Maybe its just my fault and i should use GPIO_PIN_INTR_NEGEDGE rather than GPIO_PIN_INTR_LOLEVEL for buttons interruption?
- input pins aren't connected to output pins, but thru buttons with GND
- line 77 changed to
Code: Select all
io_conf.intr_type = GPIO_PIN_INTR_LOLEVEL;
Code: Select all
GPIO[13] intr, val: 0
GPIO[13] intr, val: 0
GPIO[13] intr, val: 0
GPIO[Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Register dump:
PC : 0x40082cc6 PS : 0x00060034 A0 : 0x400816e5 A1 : 0x3ffb05e0
A2 : 0x0000001f A3 : 0x00002000 A4 : 0x00000000 A5 : 0x00000007
A6 : 0x00000000 A7 : 0x00060c20 A8 : 0x0000001f A9 : 0x3ff44000
A10 : 0x0000000d A11 : 0x00060b20 A12 : 0x800d07a2 A13 : 0x3ffafd60
A14 : 0x3ffafe4c A15 : 0x3ffaffc8 SAR : 0x00000013 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x40082cc6:0x3ffb05e0 0x400816e2:0x3ffb0600