Search found 9 matches

by Energiya
Sun Jun 15, 2025 10:44 am
Forum: General Discussion
Topic: System hangs on i2c_master_transmit
Replies: 1
Views: 46

Re: System hangs on i2c_master_transmit

I have resolved it by myself. There is bug in i2c_master.c file.
i2c_hal_master_set_scl_timeout_val must be above I2C_CLOCK_SRC_ATOMIC
2025-06-15_12-33.png
2025-06-15_12-33.png (205.61 KiB) Viewed 40 times
by Energiya
Sun Jun 15, 2025 10:38 am
Forum: General Discussion
Topic: sp32s3 - I2C transaction unexpected nack detected
Replies: 12
Views: 6415

Re: sp32s3 - I2C transaction unexpected nack detected

Hi,
To resolve the bug.You have to update i2c_master.c and change from

I2C_CLOCK_SRC_ATOMIC() {
i2c_hal_set_bus_timing(hal, i2c_dev->scl_speed_hz, i2c_master->base->clk_src, i2c_master->base->clk_src_freq_hz);
}

// Set the timeout value
i2c_hal_master_set_scl_timeout_val(hal, i2c_dev->scl ...
by Energiya
Sun Jun 15, 2025 10:08 am
Forum: General Discussion
Topic: System hangs on i2c_master_transmit
Replies: 1
Views: 46

System hangs on i2c_master_transmit

Hello,
I have got system on ESP32S3. I use I2c line. Everything works fine on ESP-IDF v5.3.1 . I have just upgraded the system to ESP-IDF v5.4.1 and my app stopped working. I have got no error. Whole system hangs on i2c_master_transmit. I setup many registers. When I execute function i2c_master ...
by Energiya
Sun Jan 28, 2024 4:38 pm
Forum: ESP-IDF
Topic: SPI does not work
Replies: 1
Views: 778

Re: SPI does not work

Hi,
I have resolved the issue. I have noticed that mosi_io_num and data0_io_num are union. Also miso_io_num and data1_io_num.

union {
int mosi_io_num; ///< GPIO pin for Master Out Slave In (=spi_d) signal, or -1 if not used.
int data0_io_num; ///< GPIO pin for spi data0 signal in quad/octal ...
by Energiya
Sun Jan 28, 2024 4:37 pm
Forum: IDEs for ESP-IDF
Topic: SPI does not work
Replies: 1
Views: 5396

Re: SPI does not work

Hi,
I have resolved the issue. I have noticed that mosi_io_num and data0_io_num are union. Also miso_io_num and data1_io_num.

union {
int mosi_io_num; ///< GPIO pin for Master Out Slave In (=spi_d) signal, or -1 if not used.
int data0_io_num; ///< GPIO pin for spi data0 signal in quad/octal ...
by Energiya
Sun Jan 28, 2024 4:36 pm
Forum: Hardware
Topic: SPI does not work
Replies: 1
Views: 1245

Re: SPI does not work

Hi,
I have resolved the issue. I have noticed that mosi_io_num and data0_io_num are union. Also miso_io_num and data1_io_num.

union {
int mosi_io_num; ///< GPIO pin for Master Out Slave In (=spi_d) signal, or -1 if not used.
int data0_io_num; ///< GPIO pin for spi data0 signal in quad/octal ...
by Energiya
Sat Jan 27, 2024 3:51 pm
Forum: Hardware
Topic: SPI does not work
Replies: 1
Views: 1245

SPI does not work

Hello,
I have got XIAO ESP32S3 and ESP32-WROOM32 units. I have got exactly the same problem on both. SPI works on Arduino but it does not on ESP-IDF. I use ESP-IDF 5.1.2.

I setup SPI by using code below. Later I send 4 bytes

//On XIAO I tried
//gpio_iomux_in(GPIO_NUM_9, SPI3_D_IN_IDX);
//gpio ...
by Energiya
Sat Jan 27, 2024 3:49 pm
Forum: IDEs for ESP-IDF
Topic: SPI does not work
Replies: 1
Views: 5396

SPI does not work

Hello,
I have got XIAO ESP32S3 and ESP32-WROOM32 units. I have got exactly the same problem on both. SPI works on Arduino but it does not on ESP-IDF. I use ESP-IDF 5.1.2.

I setup SPI by using code below. Later I send 4 bytes

//On XIAO I tried
//gpio_iomux_in(GPIO_NUM_9, SPI3_D_IN_IDX);
//gpio ...
by Energiya
Sat Jan 27, 2024 3:01 pm
Forum: ESP-IDF
Topic: SPI does not work
Replies: 1
Views: 778

SPI does not work

Hello,
I have got XIAO ESP32S3 and ESP32-WROOM32 units. I have got exactly the same problem on both. SPI works on Arduino but it does not on ESP-IDF. I use ESP-IDF 5.1.2.

I setup SPI by using code below. Later I send 4 bytes

//On XIAO I tried
//gpio_iomux_in(GPIO_NUM_9, SPI3_D_IN_IDX);
//gpio ...

Go to advanced search