Skip to content

Error with ISR? #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mitchsf opened this issue Jul 6, 2017 · 1 comment
Closed

Error with ISR? #488

mitchsf opened this issue Jul 6, 2017 · 1 comment

Comments

@mitchsf
Copy link

mitchsf commented Jul 6, 2017

Hi All,

I get this error when calling an ISR function. It has worked for a while, but this happened when I added WiFi and AP functions. So far I can't trace it to one specific action. I'm using the latest Arduino core. Advice is appreciated.

Thanks in advance.

``
Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)
Register dump:
PC : 0x400d0dfc PS : 0x00060034 A0 : 0x40081e75 A1 : 0x3ffc0be0
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x000000ff A5 : 0x400860e4
A6 : 0x00000020 A7 : 0x3ffc8a68 A8 : 0x800810f8 A9 : 0xe00a1400
A10 : 0x00000000 A11 : 0x3ffc1188 A12 : 0x20000000 A13 : 0x00000001
A14 : 0x00000400 A15 : 0xffffffff SAR : 0x00000020 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x400d0dfc:0x3ffc0be0 0x40081e75:0x3ffc0c00

CPU halted.

``
Decoding 5 results
0x400d0dfc: processFrame() at C:\Users\Mitchell\SkyDrive\Arduino\GC-1000ESP/GC-1000ESP.ino line 306
0x40081e75: _xt_lowint1 at xtensa_vectors.o line ?
0x400860e4: _frxt_int_enter at ?? line ?
0x400d0dfc: processFrame() at C:\Users\Mitchell\SkyDrive\Arduino\GC-1000ESP/GC-1000ESP.ino line 306
0x40081e75: _xt_lowint1 at xtensa_vectors.o line ?

``

@mitchsf
Copy link
Author

mitchsf commented Jul 7, 2017

Sorry, I'm only familiar with the Arduino IDE, at this point. Here is the code that sets the ISR:
// intialize timer timer = timerBegin(0, 80, true); // timer_id = 0; divider=80; countUp = true; timerAttachInterrupt(timer, &processFrame, true); // edge = true timerAlarmWrite(timer, 10000, true); //10 ms

And it is started and stopped with this:
timerAlarmDisable(timer); if (FRAME_START == true) timerAlarmEnable(timer);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant