karawin / KaRadio32_4

KaRadio32 for ESP-IDF 4.4
36 stars 12 forks source link

I2C problem #3

Open Katto73 opened 2 years ago

Katto73 commented 2 years ago

Hi, at first I wanted to say thank you for this wonderful project, especially for your efforts to convert it to the 4.4 version. I have a problem with the I2C connection. Using the templates in the boards directory, e.g. standard_adb or standard_psram (where I2C is enabled) won't start the compiled KaRadio32_4.bin file from the build directory. I get an error message like this

... E (1548) main: Running partition type 0 subtype 16 (offset 0x00010000) Log level is now ESP_LOG_ERROR E (3408) i2c: i2c_param_config(662): i2c clock choice is invalid, please check flag and frequency E (3408) err: esp_err_t = 258

assert failed: u8g2_esp32_i2c_byte_cb u8g2_esp32_hal.c:141 (0 && "i2c_param_config(I2C_MASTER_NUM, &conf)") ...

Turning off the I2C bus in the *.csv files (255), the software starts without any problem. Can anyone confirm this?

best regards Torsten

karawin commented 2 years ago

Thanks, i will see this point.

vdlab commented 2 years ago

add: conf.clk_flags = 0; in "components/u8g2/csrc/u8g2_esp32_hal.c" before line 141.

karawin commented 2 years ago

effectively this parameter is unknown in 3.3

Thanks