-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
esp32c3 i2c will cause cpu IDLE (IDFGH-6463) #8120
Comments
I look the same ploblem #7812 |
A patch may help here, change the *.txt to *.patch and |
Hi @FanhuaCloud ,
In a more general note, we do provide wrappers to ease I2C transfers, in your case, you could use:
|
https://gist.github.com/FanhuaCloud/be12c7ad155f7a75221b99bd3e64ca62 |
@mythbuster5 |
Just wondering how is the status, @mythbuster5 @o-marshmallow I found: Then it keeps showing: |
@o-marshmallow @mythbuster5 |
@AxelLin Sorry, I saw the message just now |
I test it by disconnect the SCL from my i2c sensor on pupose to simulate the TIMEOUT case. |
The fix is not available in any branch, when would you merge it? |
@AxelLin This fix is simply a workaround, the goal is to fix the root cause first |
The workaround fix appears in various places: |
@o-marshmallow |
Thanks for reporting and sorry for slow turnaround, fix is available 0b00831, we are also back porting to release branches. Feel free to reopen. |
Environment
git describe --tags
to find it):// ESP-IDF v5.0-dev-797-g279c8aeb8a
xtensa-esp32-elf-gcc --version
to find it):// riscv32-esp-elf-gcc-8.4.0.exe (crosstool-NG esp-2021r2) 8.4.0
Problem Description
When using i2c, there is a chance that the cpu will be idle
I think it might be because the i2c code took too long
//Detailed problem description goes here.
Expected Behavior
Actual Behavior
E (6907) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (6907) task_wdt: - IDLE (CPU 0)
E (6907) task_wdt: Tasks currently running:
E (6907) task_wdt: CPU 0: main
Steps to reproduce
// If possible, attach a picture of your setup/wiring here.
Code to reproduce this issue
// If your code is longer than 30 lines, GIST is preferred.
Debug Logs
Other items if possible
build
folder (note this may contain all the code details and symbols of your project.)The text was updated successfully, but these errors were encountered: