APDS-9960_RGB_and_Gesture_Sensor icon indicating copy to clipboard operation
APDS-9960_RGB_and_Gesture_Sensor copied to clipboard

Esp8266 GestureTest

Open Oopas opened this issue 3 years ago • 4 comments

I tried to use the library on esp8266, but it was constantly rebooting....

Oopas avatar Nov 13 '20 02:11 Oopas

Here's some information


SparkFun APDS-9960 - GestureTest

ISR not in IRAM!

User exception (panic/abort/assert) --------------- CUT HERE FOR EXCEPTION DECODER ---------------

Abort called

stack>>>

ctx: cont sp: 3ffffef0 end: 3fffffc0 offset: 0000 3ffffef0: 2d2d2d2d 2d2d2d2d 2d2d2d2d 2d2d2d2d
3fffff00: 000000fe 00000000 00000000 00000000
3fffff10: 00000000 00000000 00000000 00ff0000
3fffff20: 5ffffe00 5ffffe00 000a0d00 00000000
3fffff30: 00000002 00000000 3ffee4f4 40202cb2
3fffff40: 4010072e 402043d5 ffffffff 40202cc4
3fffff50: 40201f9c 3ffee4f4 3ffee4f4 4020391d
3fffff60: 00000000 3ffee4f4 3ffe8631 402021a1
3fffff70: 3fffdad0 00000020 3ffee4f4 3ffee55c
3fffff80: 3fffdad0 00000000 3ffee4f4 402039cc
3fffff90: 3fffdad0 00000000 3ffee4f4 4020109c
3fffffa0: feefeffe 00000000 3ffee51c 402028c0
3fffffb0: feefeffe feefeffe 3ffe84e8 40101029
<<<stack<<<

Oopas avatar Nov 13 '20 02:11 Oopas

+1

Pezhvak avatar Nov 14 '20 20:11 Pezhvak

you may need to add ICACHE_RAM_ATTR to the isr function...

void ICACHE_RAM_ATTR interruptRoutine() {
  isr_flag = 1;
}

jschoch avatar Mar 16 '21 16:03 jschoch

73 | attachInterrupt(0, interruptRoutine, FALLING); 95 | attachInterrupt(0, interruptRoutine, FALLING); Compilation error: 'interruptRoutine' was not declared in this scope

That is what i get after add ICACHE_RAM_ATTR to the ISR function, can anyone help?

Bob0707 avatar Sep 09 '23 22:09 Bob0707