Closed DerPicknicker closed 1 year ago
You cannot use i2cdev based libraries on the same I2C port with non-i2cdev-based libraries. So either use devices on different I2C ports, or port the ssd1306 library to i2cdev.
@UncleRus ... I tested both ways.. It still doesn't work. I used port1 for display and port 0 for the Rtc and inversed. So here I guess the issue must be something different.
The issue
Hi,
first I have to thank you for the great documentation and the structure of the Git... My Problem seems not that related to IDF-Libs but I guess the issue is caused by DS3231 Lib..
Here is my Setup:
I use an SSD1306 in I2C-HW 1 and the DS3231 in I2C-HW 0. I want to separate them. In both cases the ESP32-S3 is the master obvious because how should the OLED Display and the RTC get the Data?
The OLED Library is from here: https://github.com/nopnop2002/esp-idf-ssd1306
I can easily switch the OLED to the other I2C Port, but if I try to combine both components the Code crashes.
Please have a look.
Here is the Crash Log: 0x40375781: esp_restart_noos_dig at /Users/USERNAME/esp/esp-idf/components/esp_system/esp_system.c:46 (discriminator 1)
Here is the Code I use - I comment out a Lot just for debugging purpose. If I disable the SetTime Function the Code runs without crashing. So the Write-Function seems to be buggy?
Which SDK are you using?
esp-idf
Which version of SDK are you using?
ESP-IDF v5.05.
Which build target have you used?
Component causing the issue
DS3231
Anything in the logs that might be useful for us?
No response
Additional information or context
No response
Confirmation