Search found 4 matches

by yurriiy
Fri Jun 16, 2023 7:11 am
Forum: General Discussion
Topic: Working with two I2C ports on different cores
Replies: 6
Views: 2084

Re: Working with two I2C ports on different cores

omg... my mistake :D
everything works correctly!
thx
by yurriiy
Thu Jun 15, 2023 8:08 am
Forum: General Discussion
Topic: Working with two I2C ports on different cores
Replies: 6
Views: 2084

Re: Working with two I2C ports on different cores

Board: ESP32-DevKitC I2C_NUM_0 - two ADS1115 I2C_NUM_1 - one FRAM FM24CL16B-GTR i write a small test case: #include <string.h> #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "spi_flash_mmap.h" #include "driver/gpio.h" #include "esp_log.h...
by yurriiy
Wed Jun 14, 2023 9:56 am
Forum: General Discussion
Topic: Working with two I2C ports on different cores
Replies: 6
Views: 2084

Re: Working with two I2C ports on different cores

The error can be different, apparently depends on at what point in time the parallel tasks were working. Sometimes the error occurs in the method free() -> i2c_cmd_link_delete() At the moment I have solved the problem by using task synchronization, but I do not understand why different tasks on two ...
by yurriiy
Tue Jun 13, 2023 9:26 pm
Forum: General Discussion
Topic: Working with two I2C ports on different cores
Replies: 6
Views: 2084

Working with two I2C ports on different cores

Hi, i have problem when running in parallel with two ports on different cores. IDF version: v5.0.2 first task xTaskCreatePinnedToCore() run in core 1 using I2C_NUM_0 second task xTaskCreatePinnedToCore() run in core 0 using I2C_NUM_1 there may be different errors, for example, Backtrace: 0x400dac13:...