Search found 12 matches

by cpehonk
Tue Jan 23, 2024 8:51 pm
Forum: ESP-IDF
Topic: IDF 5.2 developer branch: i2c master => unable to read data
Replies: 6
Views: 1079

Re: IDF 5.2 developer branch: i2c master => unable to read data

Hi Matthias, I opened an issue in Github. Simon Cao answered very quickly that it is a known bug. Which is already fixed internally. He posted the right code and I will do so here if anybody else encounters the same problem. You just have to replace the given function: static bool s_i2c_read_command...
by cpehonk
Mon Jan 22, 2024 9:42 pm
Forum: ESP-IDF
Topic: IDF 5.2 developer branch: i2c master => unable to read data
Replies: 6
Views: 1079

Re: IDF 5.2 developer branch: i2c master => unable to read data

Hi Matthias, I am out :D I tried it with the function you provided... nothing. Still blocks within read part, getting resetted by task watchdog and afterwards blocked in i2c_new_master_bus ... what am I missing? LOG is set to "VERBOSE", check of i2c log is set, but there are no significant log messa...
by cpehonk
Mon Jan 22, 2024 5:17 am
Forum: ESP-IDF
Topic: IDF 5.2 developer branch: i2c master => unable to read data
Replies: 6
Views: 1079

Re: IDF 5.2 developer branch: i2c master => unable to read data

Hi Matthias,

thanks for the hint! But unfortunately, even with "uint8_t data[1]" both read functions block until watchdog reset.
Do you use the 5.2 release branch or the 5.2 developer branch?

Greetings
Christoph
by cpehonk
Sun Jan 21, 2024 9:23 am
Forum: ESP-IDF
Topic: IDF 5.2 and 5.1.2 (stable): legacy i2c driver slowdown from another task
Replies: 0
Views: 430

IDF 5.2 and 5.1.2 (stable): legacy i2c driver slowdown from another task

Hi All! Consider following situation: main task creates legacy i2c driver, initializes and uses it from time to time. A second task is responsible to accept and to answer TCP connect requests. On thing to do within the TCP task is to do a full OTA update. During update an i2c connected LCD display s...
by cpehonk
Sun Jan 21, 2024 5:17 am
Forum: ESP-IDF
Topic: IDF 5.2 developer branch: i2c master => unable to read data
Replies: 6
Views: 1079

IDF 5.2 developer branch: i2c master => unable to read data

Hi All! I tried out the IDF 5.2 branch as to the new I2C driver implementation. Unfortunately, I cant get it to work to read data from devices in master mode. Writing data to devices works like a charm. Using reading functions (i2c_master_receive or i2c_master_transmit_receive) leads to a hang and a...
by cpehonk
Sat Oct 31, 2020 5:38 am
Forum: ESP-IDF
Topic: IDF v4.2 and esp_restart()
Replies: 0
Views: 1295

IDF v4.2 and esp_restart()

Hi all, I use v4.2 of IDF and I call "esp_restart()" at the end of my OTA process. I expect reset reason "SW_CPU_RESET" after reboot, but I get "RTCWDT_BROWN_OUT_RESET". Brownout detection is enabled and does not fire all the time, the system is running. No drop is detected nor seen on the Vdd line....
by cpehonk
Sun Oct 18, 2020 3:41 am
Forum: ESP-IDF
Topic: Strange I2C behaviour in V4.2 (release)
Replies: 2
Views: 2045

Strange I2C behaviour in V4.2 (release)

Hi all, does anybody encountered the following strange I2C behaviour? I started to write a small i2c programm controlling a simple 4-line LCD display. Using the typical i2c bus speed of 100kHz leads to an extremly slow i2c communication. The complete master write cycle (using the IDF example "i2c_ma...
by cpehonk
Wed Jan 15, 2020 5:46 am
Forum: ESP-IDF
Topic: WiFi DISCONNECT events with reasons >= 200
Replies: 0
Views: 1739

WiFi DISCONNECT events with reasons >= 200

Hi folks, just one question to better understand wifi events. Receiving events with reasons greater or equal to 200 (in the docs is written that these are ESP-IDF "private" reasons, as far as I undestand), do these events really mean a DISCONNECT? Or is it just an information about bad wifi conditio...
by cpehonk
Fri Jan 03, 2020 8:22 pm
Forum: General Discussion
Topic: Random crashes in tx_pwctrl_init (backoff_en=<optimized out>) at phy_chip_v7_cal.c:2192
Replies: 2
Views: 3133

Re: Random crashes in tx_pwctrl_init (backoff_en=<optimized out>) at phy_chip_v7_cal.c:2192

Thanks, I already expected an answer like this. Will have a closer look into power supply measures.

Greetings,
Chris
by cpehonk
Fri Jan 03, 2020 6:23 am
Forum: General Discussion
Topic: Random crashes in tx_pwctrl_init (backoff_en=<optimized out>) at phy_chip_v7_cal.c:2192
Replies: 2
Views: 3133

Random crashes in tx_pwctrl_init (backoff_en=<optimized out>) at phy_chip_v7_cal.c:2192

Hi all, from time to time I get a core dump with the following content: espcoredump.py v0.3-dev =============================================================== ==================== ESP32 CORE DUMP START ==================== ================== CURRENT THREAD REGISTERS =================== pc 0x4012212...