@echo off echo Starting ESP-IDF build... > build_log.txt call C:\Espressif\idf_cmd_init.bat esp-idf-v5.5.2 >> build_log.txt 2>&1 echo Changing to project directory... >> build_log.txt cd /d C:\git\channel3\esp32_channel3 echo Setting target to esp32... >> build_log.txt idf.py set-target esp32 >> build_log.txt 2>&1 echo Building project... >> build_log.txt idf.py build >> build_log.txt 2>&1 echo Build complete. Exit code: %ERRORLEVEL% >> build_log.txt