Error Modbus RTU Slave ESP=IDF

carlos789
Posts: 4
Joined: Sat Aug 30, 2025 6:11 pm

Error Modbus RTU Slave ESP=IDF

Postby carlos789 » Sat Aug 30, 2025 6:30 pm

Hello:
I'm unable to get the Modbus example ( mb_serial_slave) to compile for ESP-IDF.
The following error message is generated:

-- Found Git: C:/Espressif/tools/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- Minimal build - OFF
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
NOTICE: Using component placed at C:\ESP32S2\esp-modbus-main for dependency "espressif/esp-modbus", specified in C:\ESP32S2\esp-modbus-main\examples\serial\mb_serial_slave\main\idf_component.yml
NOTICE: Using component placed at C:\ESP32S2\esp-modbus-main\examples\mb_example_common for dependency "mb_example_common", specified in C:\ESP32S2\esp-modbus-main\examples\serial\mb_serial_slave\main\idf_component.yml
NOTICE: Processing 3 dependencies:
NOTICE: [1/3] espressif/esp-modbus (2.1.0) (C:\ESP32S2\esp-modbus-main)
NOTICE: [2/3] mb_example_common (*) (C:\ESP32S2\esp-modbus-main\examples\mb_example_common)
NOTICE: [3/3] idf (5.5.0)
-- DEBUG: Use esp-modbus component folder: C:/ESP32S2/esp-modbus-main.
CMake Error at C:/Espressif/frameworks/esp-idf-v5.5-2/tools/cmake/build.cmake:328 (message):
Failed to resolve component 'espressif__esp-modbus' required by component
'main': unknown name.
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.5-2/tools/cmake/build.cmake:377 (__build_resolve_and_add_req)
C:/Espressif/frameworks/esp-idf-v5.5-2/tools/cmake/build.cmake:685 (__build_expand_requirements)
C:/Espressif/frameworks/esp-idf-v5.5-2/tools/cmake/project.cmake:740 (idf_build_process)
CMakeLists.txt:10 (project)
-- Configuring incomplete, errors occurred!


I can't access menuconfig either. A file with the error description is attached.
I'd really appreciate any feedback on this issue.
Regards
Carlos
Attachments
modbus menuconfig error.txt
(3.04 KiB) Downloaded 106 times

ESP_alisitsyn
Posts: 221
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: Error Modbus RTU Slave ESP=IDF

Postby ESP_alisitsyn » Thu Oct 09, 2025 8:06 am

Hello carlos789 ,

See my answers here: https://github.com/espressif/esp-modbus ... t-14633896

Thanks.

Who is online

Users browsing this forum: Applebot, Baidu [Spider], Bytespider, Google [Bot], YisouSpider and 6 guests