-
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
I2C failure in C++ after add std::vector to code (IDFGH-4463) #6293
Comments
github-actions
bot
changed the title
I2C failure in C++ after add std::vector to code
I2C failure in C++ after add std::vector to code (IDFGH-4463)
Dec 17, 2020
Thanks for reporting and letting us know, we will look into. |
4.3 adds 'clk_flags' field to i2c_config_t. You need to zero i2c_config_t or set clk_flags. |
Solved it!
I checked out version 4.2 and there the initial code is working. @boarchuz thank you |
IsaacJT
added a commit
to IsaacJT/ssd1306
that referenced
this issue
Oct 24, 2021
Recent versions of the ESP SDK (>=4.3) have added extra fields to the i2c_config_t struct which need to be set to zero, otherwise the following errors are printed out: E (322) i2c: i2c_param_config(644): i2c clock choice is invalid, please check flag and frequency E (1344) i2c: i2c_set_pin(825): scl and sda gpio numbers are the same Initialising the struct to zero resolves these issues. See espressif/esp-idf#6293 for more information on this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
git describe --tags
to find it): v4.3-dev-2136-gb0150615dxtensa-esp32-elf-gcc --version
to find it): 8.4.0Problem Description
I setup an program for communication with I2C in C++. After add an
std::vector
, the I2C communication failed, here an mini example for reproduce:The
monitor
output:If I also run my full program, and try communication on this interface this error will also prompted:
If the
vector
is removed, the error didn't occur.The text was updated successfully, but these errors were encountered: