Running idf.py in dumped batch

Sysprogs forums Forums VisualGDB Running idf.py in dumped batch

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #36728
    mscian
    Participant

    As shown in https://visualgdb.com/documentation/espidf/#buildproblems, i dumped the cmake command for get a shell with IDF environment.

    The file is like that:

    REM Run "C:\Users\CENSORED\AppData\Local\VisualGDB\CMake\bin\cmake.exe ../../.. -G "Ninja" -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_MAKE_PROGRAM=c:/sysgcc/esp32/tools/ninja/1.11.1/ninja.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 -DIDF_TARGET=esp32s3" in directory "C:\Users\CENSORED\source\repos\OIDA-HP\OIDA-HP/build/VisualGDB/Debug" on local computer
    cd /d C:\Users\CENSORED\source\repos\OIDA-HP\OIDA-HP/build/VisualGDB/Debug
    set LANG=en_US.UTF-8
    set PATH=C:\Program Files\Git\cmd;C:\Users\CENSORED\.espressif\python_env\\idf5.2_py3.8_env\Scripts;C:\Users\CENSORED\AppData\Local\VisualGDB\Python-3.8.10;c:\sysgcc\esp32\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin;c:\sysgcc\esp32\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin;c:\sysgcc\esp32\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;c:\sysgcc\esp32\tools\riscv32-esp-elf\esp-13.2.0_20230928\riscv32-esp-elf\bin;c:\sysgcc\esp32\tools\idf-exe\1.0.3;c:\sysgcc\esp32\tools\ccache\4.8\ccache-4.8-windows-x86_64;c:\sysgcc\esp32\tools\ninja\1.11.1;%PATH%
    set IDF_TOOLS_PATH=
    set IDF_PATH=C:\SysGCC\esp32\esp-idf\v5.2.2
    set SYSPROGS_COMPONENTS_DIR=c:/sysgcc/esp32/esp-idf/SysprogsComponents
    set IDF_GIT_DIR=C:\Program Files\Git\cmd
    set IDF_PYTHON_DIR=C:\Users\CENSORED\AppData\Local\VisualGDB\Python-3.8.10
    set IDF_PYTHON_ENV_PATH=C:\Users\CENSORED\.espressif\python_env\\idf5.2_py3.8_env
    set CMAKE_MAKE_PROGRAM=c:/sysgcc/esp32/tools/ninja/1.11.1/ninja.exe
    REM "C:\Users\CENSORED\AppData\Local\VisualGDB\CMake\bin\cmake.exe" ../../.. -G "Ninja" -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_MAKE_PROGRAM=c:/sysgcc/esp32/tools/ninja/1.11.1/ninja.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 -DIDF_TARGET=esp32s3
    

    So, i want run

    idf.py efuse-common-table

    But environment doesn’t know what application running.
    So i tried

    python idf.py efuse-common-table

    But environment search idf.py inside the project folder, and it’s wrong

    C:\\Users\\CENSORED\\source\\repos\\OIDA-HP\\OIDA-HP\\idf.py

    So i can see the IDF_TOOLS_PATH is blank. I think it should point somewhere like this:

    set IDF_TOOLS_PATH=C:\SysGCC\esp32\esp-idf\v5.2.2\tools

    And so, in the batch file, i tried

    python %IDF_TOOLS_PATH%\idf.py efuse-common-table

    But i get this error:
    ERROR: C:\SysGCC\esp32\esp-idf\v5.2.2\tools\espidf.constraints.v5.2.txt doesn't exist. Perhaps you've forgotten to run the install scripts. Please check the installation guide for more information.

    How can i run my idf.py script?

    • This topic was modified 1 day, 16 hours ago by mscian.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.