This commit is contained in:
2025-08-05 08:53:48 -04:00
parent 7426f62737
commit 18aad6bf70
16 changed files with 847 additions and 869 deletions

View File

@@ -1 +1 @@
362b1cac5971ad107032412e27208e5d /home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/I2C_MultiDevice.bin
0ac0640820f00386aece4416589580cc /home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/I2C_MultiDevice.bin

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
f5fecac79759880f2eb6f23b2992076e218ab86e
7426f627373281111a8eb8668c7c65ad7b37f6fc

View File

@@ -119,3 +119,5 @@
5 39 0 /home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e89f83c8252b7827
4 40 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e89f83c8252b7827
4 40 0 /home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e89f83c8252b7827
4 36 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e89f83c8252b7827
4 36 0 /home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e89f83c8252b7827

View File

@@ -3149,7 +3149,7 @@ build esp-idf/partition_table/CMakeFiles/partition_table-flash | ${cmake_ninja_w
build cmake_object_order_depends_target___idf_esp_app_format: phony || cmake_object_order_depends_target___idf_esp_bootloader_format
build esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj: C_COMPILER____idf_esp_app_format_unscanned_ /home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c || cmake_object_order_depends_target___idf_esp_app_format
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.4.1-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"I2C_MultiDevice\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-9220-gf5\"
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.4.1-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"I2C_MultiDevice\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-9221-g74\"
DEP_FILE = esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj.d
FLAGS = -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice=. -fmacro-prefix-map=/home/alex/esp/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration
INCLUDES = -I/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/config -I/home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/include -I/home/alex/esp/v5.4.1/esp-idf/components/newlib/platform_include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/include/freertos -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/esp_additions/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/dma/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/heap/include -I/home/alex/esp/v5.4.1/esp-idf/components/heap/tlsf -I/home/alex/esp/v5.4.1/esp-idf/components/log/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3/register -I/home/alex/esp/v5.4.1/esp-idf/components/hal/platform_port/include -I/home/alex/esp/v5.4.1/esp-idf/components/hal/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/hal/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_common/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/soc -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/include/riscv -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/include/private -I/home/alex/esp/v5.4.1/esp-idf/components/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include/apps -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include/apps/sntp -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/lwip/src/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/freertos/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys

View File

@@ -907,7 +907,7 @@
},
{
"directory": "/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build",
"command": "/home/alex/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\\\"v5.4.1-dirty\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"I2C_MultiDevice\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-9220-gf5\\\" -I/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/config -I/home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/include -I/home/alex/esp/v5.4.1/esp-idf/components/newlib/platform_include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/include/freertos -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/esp_additions/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/dma/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/heap/include -I/home/alex/esp/v5.4.1/esp-idf/components/heap/tlsf -I/home/alex/esp/v5.4.1/esp-idf/components/log/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3/register -I/home/alex/esp/v5.4.1/esp-idf/components/hal/platform_port/include -I/home/alex/esp/v5.4.1/esp-idf/components/hal/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/hal/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_common/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/soc -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/include/riscv -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/include/private -I/home/alex/esp/v5.4.1/esp-idf/components/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include/apps -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include/apps/sntp -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/lwip/src/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/freertos/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice=. -fmacro-prefix-map=/home/alex/esp/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj -c /home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c",
"command": "/home/alex/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\\\"v5.4.1-dirty\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"I2C_MultiDevice\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-9221-g74\\\" -I/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/config -I/home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/include -I/home/alex/esp/v5.4.1/esp-idf/components/newlib/platform_include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/include/freertos -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/config/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/alex/esp/v5.4.1/esp-idf/components/freertos/esp_additions/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/dma/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -I/home/alex/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/heap/include -I/home/alex/esp/v5.4.1/esp-idf/components/heap/tlsf -I/home/alex/esp/v5.4.1/esp-idf/components/log/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/soc/esp32c3/register -I/home/alex/esp/v5.4.1/esp-idf/components/hal/platform_port/include -I/home/alex/esp/v5.4.1/esp-idf/components/hal/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/hal/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3 -I/home/alex/esp/v5.4.1/esp-idf/components/esp_common/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/include -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/soc -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/include/riscv -I/home/alex/esp/v5.4.1/esp-idf/components/esp_system/port/include/private -I/home/alex/esp/v5.4.1/esp-idf/components/riscv/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include/apps -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/include/apps/sntp -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/lwip/src/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/freertos/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/alex/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice=. -fmacro-prefix-map=/home/alex/esp/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj -c /home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c",
"file": "/home/alex/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c",
"output": "esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj"
},

View File

@@ -1,7 +1,7 @@
{
"version": "1.2",
"project_name": "I2C_MultiDevice",
"project_version": "ESP32-Node_Switch-v2.7-9220-gf5fecac79-dirty",
"project_version": "ESP32-Node_Switch-v2.7-9221-g7426f6273-dirty",
"project_path": "/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice",
"idf_path": "/home/alex/esp/v5.4.1/esp-idf",
"build_dir": "/home/alex/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build",

View File

@@ -6,6 +6,9 @@
#include "freertos/semphr.h"
#include "driver/i2c_master.h"
#define I2C_GPIO_SCL (22)
#define I2C_GPIO_SDA (21)
typedef struct {
SemaphoreHandle_t i2cMutex;
uint16_t sda;
@@ -15,8 +18,8 @@ typedef struct {
i2c_master_bus_config_t bus_config = {
.clk_source = I2C_CLK_SRC_DEFAULT,
.i2c_port = I2C_NUM_0, // Use I2C_NUM_1 for second port
.scl_io_num = 22, // Your SCL pin
.sda_io_num = 21, // Your SDA pin
.scl_io_num = I2C_GPIO_SCL, // Your SCL pin
.sda_io_num = I2C_GPIO_SDA, // Your SDA pin
.glitch_ignore_cnt = 7,
.flags.enable_internal_pullup = true,
};