@echo off
cd /D C:\Git\waterius-esp32s2\ESP32S2\.pio\build\esp32s2\esp-idf\src\ulp_main || (set FAIL_LINE=2& goto :ABORT)
C:\Users\a.abrosimov\.platformio\packages\tool-cmake\bin\cmake.exe -DCMAKE_GENERATOR=Ninja -DCMAKE_TOOLCHAIN_FILE=C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/ulp/cmake/toolchain-esp32s2-ulp.cmake -DULP_S_SOURCES=C:/Git/waterius-esp32s2/ESP32S2/ulp/pulse_cnt.S;C:/Git/waterius-esp32s2/ESP32S2/ulp/wake_up.S -DULP_APP_NAME=ulp_main -DCOMPONENT_DIR=C:/Git/waterius-esp32s2/ESP32S2/src -DCOMPONENT_INCLUDES=C:/Git/waterius-esp32s2/ESP32S2/src;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/newlib/platform_include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/freertos/esp_additions/include/freertos;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/freertos/esp_additions/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/freertos/esp_additions/arch/xtensa/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_hw_support/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_hw_support/include/soc;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_hw_support/include/soc/esp32s2;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32s2/.;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/heap/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/log/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/soc/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/soc/esp32s2;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/soc/esp32s2/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/hal/esp32s2/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/hal/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/hal/platform_port/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_rom/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_rom/include/esp32s2;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_rom/esp32s2;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_common/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_system/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_system/port/soc;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_system/port/include/private;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/xtensa/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/xtensa/esp32s2/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/include/apps;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/include/apps/sntp;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/lwip/src/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/port/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/port/freertos/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/port/esp32xx/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/lwip/port/esp32xx/include/arch;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/deprecated;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/analog_comparator/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/dac/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/gpio/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/gptimer/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/i2c/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/i2s/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/ledc/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/mcpwm/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/parlio/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/pcnt/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/rmt/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/sdio_slave/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/sdmmc/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/sigma_delta/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/spi/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/temperature_sensor/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/touch_sensor/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/twai/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/uart/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/usb_serial_jtag/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/driver/touch_sensor/esp32s2/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_pm/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_ringbuf/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/nvs_flash/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_partition/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/spi_flash/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/ulp/ulp_common/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/ulp/ulp_common/include/esp32s2;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/ulp/ulp_fsm/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/ulp/ulp_fsm/include/esp32s2;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_adc/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_adc/interface;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_adc/esp32s2/include;C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/esp_adc/deprecated/include;C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config -DIDF_TARGET=esp32s2 -DIDF_PATH=C:/Users/a.abrosimov/.platformio/packages/framework-espidf -DSDKCONFIG_HEADER=C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/config/sdkconfig.h -DPYTHON=C:/Users/a.abrosimov/.platformio/penv/.espidf-5.1.5/Scripts/python.exe -DULP_COCPU_IS_RISCV=OFF -DULP_COCPU_IS_LP_CORE= -GNinja C:/Users/a.abrosimov/.platformio/packages/framework-espidf/components/ulp/cmake || (set FAIL_LINE=3& goto :ABORT)
C:\Users\a.abrosimov\.platformio\packages\tool-cmake\bin\cmake.exe -E touch C:/Git/waterius-esp32s2/ESP32S2/.pio/build/esp32s2/esp-idf/src/ulp_main-prefix/src/ulp_main-stamp/ulp_main-configure || (set FAIL_LINE=4& goto :ABORT)
goto :EOF

:ABORT
set ERROR_CODE=%ERRORLEVEL%
echo Batch file failed at line %FAIL_LINE% with errorcode %ERRORLEVEL%
exit /b %ERROR_CODE%