moononournation / Arduino_GFX

Arduino GFX developing for various color displays and various data bus interfaces
Other
811 stars 158 forks source link

After timer initialized gfx->begin(); causes Core 1 panic'ed (IllegalInstruction) error. #307

Closed anand-010 closed 1 year ago

anand-010 commented 1 year ago

I've tried to dim brightness of an led screen when there is an inactivity using a timer. I've used ESP32TimerInterrupt library from Khoi Hoang i've tried to input timer 0,1,2,3 like this ESP32Timer ITimer(1);

afterITimer.attachInterruptInterval(HW_TIMER_INTERVAL_MS * 1000, TimerHandler) gfx->begin(); The lcd screen is not turing on and throws error. Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.

Memory dump at 0x40375508: e725fbc1 000000ff cd008136
Core  1 register dump:
PC      : 0x4037550d  PS      : 0x00060033  A0      : 0x803760cf  A1      : 0x3fc955a0  
A2      : 0x00000000  A3      : 0x3fc98aac  A4      : 0x3fc98ab0  A5      : 0x00060023
A6      : 0x00060021  A7      : 0x00000001  A8      : 0x8037550d  A9      : 0x3fc95580  
A10     : 0x3fc97e08  A11     : 0x3fc98024  A12     : 0x00000078  A13     : 0x3fc9804c
A14     : 0x3fc98008  A15     : 0x00000010  SAR     : 0x0000000a  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x400570e8  LEND    : 0x400570f3  LCOUNT  : 0x0000b25d

I am using the sunton ESP32-8048S070 with lastest platformio and lvgl. |-- Regexp @ 0.1.0 |-- lvgl @ 8.3.7 |-- ESP32TimerInterrupt @ 2.3.0 |-- GFX Library for Arduino @ 1.2.8 |-- SPI @ 2.0.0 |-- TAMC_GT911 @ 1.0.2 |-- Wire @ 2.0.0

moononournation commented 1 year ago

RGB seems also use timer, try avoid the conflicts.