ESP-IDF v5.3.1 I2C的transmit方法报错 (IDFGH-14031) #14852
Labels
Resolution: Won't Do
This will not be worked on
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
5.3.1
Espressif SoC revision.
ESP32-S3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32 S3 WROOM- 1 DevKitC-1
Power Supply used.
USB
What is the expected behavior?
正常发送一个字符。
What is the actual behavior?
当我使用transmit方法时, 开发板报黄字并且重启。
Steps to reproduce.
#include "driver/i2c_master.h"
#include "driver/i2c_slave.h"
#include "esp_log.h"
i2c_master_bus_config_t i2c_mst_config = {
.clk_source = I2C_CLK_SRC_DEFAULT,
.i2c_port = I2C_NUM_0,
.scl_io_num = GPIO_NUM_10,
.sda_io_num = GPIO_NUM_3,
.glitch_ignore_cnt = 7,
.flags.enable_internal_pullup = true,
};
i2c_master_bus_handle_t bus_handle;
i2c_device_config_t mpu_cfg = {
.dev_addr_length = I2C_ADDR_BIT_LEN_7,
.device_address = 0x68,
.scl_speed_hz = 100000,
};
i2c_master_dev_handle_t mpu_handle;
uint8_t a = 0x80;
void app_main (void) {
ESP_ERROR_CHECK(i2c_new_master_bus(&i2c_mst_config, &bus_handle));
ESP_ERROR_CHECK(i2c_master_bus_add_device(bus_handle, &mpu_cfg, &mpu_handle));
ESP_ERROR_CHECK(i2c_master_transmit(mpu_handle, a, sizeof(a), -1));
}
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: