Skip to content
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

u8g2 crashes arduino nano esp32 #2503

Open
AlexSchmitz222 opened this issue Sep 6, 2024 · 1 comment
Open

u8g2 crashes arduino nano esp32 #2503

AlexSchmitz222 opened this issue Sep 6, 2024 · 1 comment

Comments

@AlexSchmitz222
Copy link

AlexSchmitz222 commented Sep 6, 2024

Hey everyone,

I'm using an Arduino Nano ESP32, containing an ESP32-S3 together with an AZ-Delivery SH1106 I2C Display (128x64px). I'm trying to execute an Interrupt every 30sec. However, upon entering the Interrupt Routine, the ESP crashes and reboots.This happens when u8g2.sendBuffer() or any other Display related function like u8g2.clearDisplay() is called.

Is there anything I can do to fix the issue? I've already tried disabling the interrupt during the interrupt routine to no success.

A Thought: Do those functions maybe make use of float values? The ESP32-S3 has a hardware floating point unit which isn't allowed to b used during interrupts, thus crashing the device if trying to do floating point math.

@olikraus
Copy link
Owner

olikraus commented Sep 7, 2024

U8g2 doesn't use float. But maybe the watch dog of the ESP forces the reset. So you might need to extend the timeout for the watchdog.

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

2 participants