Project builds for ESP32 target, fails to build for ESP32S3 target (VSC-956)
See original GitHub issueOS
Windows
Operating System version
10
Visual Studio Code version
1.70.2
ESP-IDF version
4.4.3
Python version
3.8.7
Doctor command output
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report --------------------------------------------- OS win32 x64 10.0.19044 System environment variable IDF_PYTHON_ENV_PATH undefined System environment variable PATH C:\Python310\Scripts;C:\Python310;C:\ProgramData\LLVM for Renesas RL78 10.0.0.202104\bin;C:\Program Files (x86)\GCC for Renesas RL78 4.9.2.202002-GNURL78-ELF\rl78-elf\rl78-elf\bin;C:\Program Files\Python39\Scripts;C:\Program Files\Python39;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\TortoiseGit\bin;C:\Program Files\WinMerge;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files\dotnet;C:\ProgramData\LLVM for Renesas RL78 10.0.0.202104\bin;D:\Git\cmd;D:\Python\WPy64-3940\python-3.9.4.amd64;C:\Users\porterj02\AppData\Local\Microsoft\WindowsApps;C:\Users\porterj02\AppData\Local\Programs\Git\cmd;C:\Users\porterj02\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\porterj02\AppData\Local\particle\bin;C:\OpenSSL-Win32\bin;C:\Users\porterj02\AppData\Roaming\npm; System environment variable PYTHON undefined Visual Studio Code version 1.70.2 Visual Studio Code language en Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe ESP-IDF Extension version 1.5.0 Workspace folder c:\Code\Projects\ESP32_Common\apps\Ttpventus_Pump_Util ---------------------------------------------------- Extension configuration settings ------------------------------------------------------ ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH} ESP-IDF Path (idf.espIdfPath) C:/Espressif/esp-idf/ ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH} ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH} Custom extra paths (idf.customExtraPaths) C:\Espressif\tools\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin;C:\Espressif\tools\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin;C:\Espressif\tools\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\Espressif\tools\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\Espressif\tools\tools\cmake\3.16.4\bin;C:\Espressif\tools\tools\openocd-esp32\v0.10.0-esp32-20210721\openocd-esp32\bin;C:\Espressif\tools\tools\ninja\1.10.0;C:\Espressif\tools\tools\idf-exe\1.0.1;C:\Espressif\tools\tools\ccache\3.7;C:\Espressif\tools\tools\dfu-util\0.9\dfu-util-0.9-win64 Custom extra vars (idf.customExtraVars) {“OPENOCD_SCRIPTS”:“C:\Espressif\tools\tools\openocd-esp32\v0.10.0-esp32-20210721/openocd-esp32/share/openocd/scripts”,“IDF_CCACHE_ENABLE”:“1”} Virtual env Python Path (idf.pythonBinPath) C:/Espressif/tools/python_env/idf4.3_py3.8_env/Scripts/python.exe Serial port (idf.port) COM7 OpenOCD Configs (idf.openOcdConfigs) interface/ftdi/esp32_devkitj_v1.cfg,target/esp32.cfg ESP-IDF Tools Path (idf.toolsPath) C:\Espressif\tools Git Path (idf.gitPath) C:/Espressif/tools/tools/idf-git/2.30.1/cmd/git.exe -------------------------------------------------------- Configurations access ------------------------------------------------------------- Access to ESP-ADF Path (idf.espAdfPath) false Access to ESP-IDF Path (idf.espIdfPath) true Access to ESP-MDF Path (idf.espMdfPath) false Access to ESP-Matter Path (idf.espMatterPath) false Access to ESP-IDF Custom extra paths Access to C:\Espressif\tools\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin: true Access to C:\Espressif\tools\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin: true Access to C:\Espressif\tools\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: true Access to C:\Espressif\tools\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: true Access to C:\Espressif\tools\tools\cmake\3.16.4\bin: true Access to C:\Espressif\tools\tools\openocd-esp32\v0.10.0-esp32-20210721\openocd-esp32\bin: true Access to C:\Espressif\tools\tools\ninja\1.10.0: true Access to C:\Espressif\tools\tools\idf-exe\1.0.1: true Access to C:\Espressif\tools\tools\ccache\3.7: true Access to C:\Espressif\tools\tools\dfu-util\0.9\dfu-util-0.9-win64: true Access to Virtual env Python Path (idf.pythonBinPath) true Access to CMake in environment PATH undefined Access to Ninja in environment PATH undefined Access to ESP-IDF Tools Path (idf.toolsPath) true -------------------------------------------------------- Configurations has spaces ------------------------------------------------------------- Spaces in system environment Path true Spaces in ESP-ADF Path (idf.espAdfPath) false Spaces in ESP-IDF Path (idf.espIdfPath) false Spaces in ESP-MDF Path (idf.espMdfPath) false Spaces in ESP-Matter Path (idf.espMatterPath) false Spaces in ESP-IDF Custom extra paths Spaces in C:\Espressif\tools\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin: false Spaces in C:\Espressif\tools\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin: false Spaces in C:\Espressif\tools\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: false Spaces in C:\Espressif\tools\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: false Spaces in C:\Espressif\tools\tools\cmake\3.16.4\bin: false Spaces in C:\Espressif\tools\tools\openocd-esp32\v0.10.0-esp32-20210721\openocd-esp32\bin: false Spaces in C:\Espressif\tools\tools\ninja\1.10.0: false Spaces in C:\Espressif\tools\tools\idf-exe\1.0.1: false Spaces in C:\Espressif\tools\tools\ccache\3.7: false Spaces in C:\Espressif\tools\tools\dfu-util\0.9\dfu-util-0.9-win64: false Spaces in Virtual env Python Path (idf.pythonBinPath) false Spaces in ESP-IDF Tools Path (idf.toolsPath) false ----------------------------------------------------------- Executables Versions ----------------------------------------------------------- Git version 2.30.1.windows.1 ESP-IDF version 4.2.1 Python version 3.8.7 Python’s pip version 20.3.3 -------------------------------------------------- Python packages in idf.pythonBinPath ---------------------------------------------------- bitstring version: 3.1.7 Brotli version: 1.0.9 certifi version: 2021.5.30 cffi version: 1.14.5 charset-normalizer version: 2.0.3 click version: 8.0.1 colorama version: 0.4.4 construct version: 2.10.54 contextlib2 version: 21.6.0 cryptography version: 3.4.7 ecdsa version: 0.17.0 esp-windows-curses version: 0.1 Flask version: 0.12.5 Flask-Compress version: 1.10.0 Flask-SocketIO version: 2.9.6 future version: 0.18.2 gcovr version: 5.0 gdbgui version: 0.13.2.0 gevent version: 1.5.0 greenlet version: 1.1.0 idf-component-manager version: 0.2.100b0 idna version: 3.2 itsdangerous version: 2.0.1 Jinja2 version: 3.0.1 kconfiglib version: 13.7.1 lxml version: 4.6.3 MarkupSafe version: 2.0.1 pip version: 20.3.3 psutil version: 5.8.0 pycparser version: 2.20 pyelftools version: 0.27 pygdbmi version: 0.9.0.2 Pygments version: 2.9.0 pyparsing version: 2.3.1 pyserial version: 3.5 python-engineio version: 3.14.2 python-socketio version: 4.6.1 pywin32 version: 301 PyYAML version: 5.4.1 reedsolo version: 1.5.4 requests version: 2.26.0 requests-toolbelt version: 0.9.1 schema version: 0.7.4 semantic-version version: 2.8.5 setuptools version: 57.4.0 six version: 1.16.0 tqdm version: 4.61.2 urllib3 version: 1.26.6 websocket-client version: 1.1.0 Werkzeug version: 0.16.1 wheel version: 0.36.2 windows-curses version: 2.2.0 xmlrunner version: 1.7.7 ---------------------------------------------------- Check ESP-IDF python requirements.txt ------------------------------------------------- Check ESP-IDF Python packages Python requirements from C:\Espressif\esp-idf\requirements.txt are satisfied. ---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------ Check Extension Python packages Python requirements from c:\Users\porterj02.vscode\extensions\espressif.esp-idf-extension-1.5.0\requirements.txt are satisfied. ---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------ Check Debug AdapterPython packages Python requirements from c:\Users\porterj02.vscode\extensions\espressif.esp-idf-extension-1.5.0\esp_debug_adapter\requirements.txt are satisfied. ---------------------------------------------------- Visual Studio Code launch.json -------------------------------------------------------- { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 “version”: “0.2.0”, “configurations”: [ { “type”: “espidf”, “name”: “Launch”, “request”: “launch”, “skipVerifyAppBinBeforeDebug”: true } ] } ----------------------------------------------------------- Latest error ----------------------------------------------------------------- Latest error at ENOENT: no such file or directory, open ‘c:\Code\Projects\ESP32_Common\apps\Ttpventus_Pump_Util.vscode\c_cpp_properties.json’
Extension
No response
Description
I have a project that builds successfully with both the ESP-IDF CMD and the VS Code ESP-IDF extension, when targeting ESP32. If I change the target to ESP32S3, make appropriate changes to Kconfig.projbuild and sdkconfig, and do a rebuild all in CMD, it builds successfully. But then it fails to build in VS Code, as follows in Debug Message.
Debug Message
Traceback (most recent call last):
File "C:\Espressif\esp-idf\tools\idf_size.py", line 923, in <module>
main()
File "C:\Espressif\esp-idf\tools\idf_size.py", line 383, in main
mem_regions = MemRegions(detected_target)
File "C:\Espressif\esp-idf\tools\idf_size.py", line 133, in __init__
raise RuntimeError('Target {} is not implemented in idf_size'.format(target))
RuntimeError: Target esp32s3 is not implemented in idf_size
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
idf.py set-target esp32s3 error - ESP32 Forum
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean. Build directory 'd:\ ...
Read more >Build System - ESP32-S3 - — ESP-IDF Programming Guide ...
“Target” is the hardware for which an application is built. ... In this case the final build tool is Ninja: running ninja actually...
Read more >Docker NodeMCU ESP32 recipe for target 'build' failed
On OSX 10.13.6 I get the following failure in an ESP32 build using marcelstoer/docker-nodemcu-build: make[3]: *** No rule to make target ...
Read more >idf_as_lib example does not compile for esp32s3 (IDFGH-6453)
I'm not sure if it is best practice, but it seems to be possible to call add_compile_options() in the toolchain file. Note that...
Read more >Environment setup — ESP-FAQ documentation
When setting up ESP32-S2 environment using command idf.py set-target esp32s2 , an error occurred as “Error: No such command 'set-target'”. What could be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh I see now. I was using ESP-IDF command line tools 4.2 when I installed the VS Code extension. Then later I upgraded the command line tools to 4.3, then later to 4.4. But I never pointed the extension at them. Everything works now. Thank you for the help @brianignacio5 and @dobairoland
Please reconfigure your Vscode plugin and link it to a right version of ESP-IDF.
In the output you can see that it uses:
ESP32-S3 is supported starting from 4.4.