Closed Ricky6633 closed 1 year ago
How is *u8g2 constructed?
UG82_UC1701_MINI12864_1_4W_HW_SPI *u8g2; u8g2 = new UG82_UC1701_MINI12864_1_4W_HW_SPI(U8G2_R0, CS_PIN, RS_PIN, RST_PIN);
Tho, i changed a bit on my code and the exception gets throws now (consistently) at another point in my code (another class that has nothing todo with the display), unfortunaly im quite a noob specially if it comes down to debugging, could this be a general heap fragmentation issue?
I personally would do something like this: Maybe you could try this:
UG82_UC1701_MINI12864_1_4W_HW_SPI u8g2_obj(U8G2_R0, CS_PIN, RS_PIN, RST_PIN);
UG82_UC1701_MINI12864_1_4W_HW_SPI *u8g2 = &u8g2_obj;
"new" should work, but I never used true.
if it comes down to debugging
Unfortunately noone else could do the debugging for you.
could this be a general heap fragmentation issue
U8g2 does not use any new/delete/malloc/free. So u8g2 can not change memory heap in any way.
Hello i have a issue where on the firstPage line the ESP32 throws an Exception occasionally, not always but like every 30 loop runs
My Code looks as follow:
Im not sure if the error really is in the firstPage function, but it happens right between the 2 Serial calls, "Serial.println("firstPage") never gets called