windows-setup.rst 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ***********************************************
  2. Standard Setup of Toolchain for Windows
  3. ***********************************************
  4. :link_to_translation:`zh_CN:[中文]`
  5. .. only:: esp32
  6. .. note::
  7. Currently only 64-bit versions of Windows are supported. 32-bit Windows can use the :doc:`Legacy GNU Make Build System<../get-started-legacy/windows-setup>`.
  8. Introduction
  9. ============
  10. ESP-IDF requires some prerequisite tools to be installed so you can build firmware for supported chips. The prerequisite tools include Python, Git, cross-compilers, CMake and Ninja build tools.
  11. For this Getting Started we're going to use the Command Prompt, but after ESP-IDF is installed you can use :doc:`Eclipse <eclipse-setup>` or another graphical IDE with CMake support instead.
  12. .. only:: esp32
  13. .. note::
  14. Previous versions of ESP-IDF used the :doc:`Legacy GNU Make Build System<../get-started-legacy/windows-setup>` and MSYS2_ Unix compatibility environment. This is no longer required, ESP-IDF can be used from the Windows Command Prompt.
  15. .. _get-started-windows-tools-installer:
  16. ESP-IDF Tools Installer
  17. =======================
  18. The easiest way to install ESP-IDF's prerequisites is to download the ESP-IDF Tools installer from this URL:
  19. https://dl.espressif.com/dl/esp-idf-tools-setup-2.3.exe
  20. The installer includes the cross-compilers, OpenOCD, cmake_ and Ninja_ build tool. The installer can also download and run installers for Python_ 3.7 and `Git For Windows`_ if they are not already installed on the computer.
  21. The installer also offers to download one of the ESP-IDF release versions.
  22. Using the Command Prompt
  23. ========================
  24. For the remaining Getting Started steps, we're going to use the Windows Command Prompt.
  25. ESP-IDF Tools Installer creates a shortcut in the Start menu to launch the ESP-IDF Command Prompt. This shortcut launches the Command Prompt (cmd.exe) and runs ``export.bat`` script to set up the environment variables (``PATH``, ``IDF_PATH`` and others). Inside this command prompt, all the installed tools are available.
  26. Note that this shortcut is specific to the ESP-IDF directory selected in the ESP-IDF Tools Installer. If you have multiple ESP-IDF directories on the computer (for example, to work with different versions of ESP-IDF), you have two options to use them:
  27. 1. Create a copy of the shortcut created by the ESP-IDF Tools Installer, and change the working directory of the new shortcut to the ESP-IDF directory you wish to use.
  28. 2. Alternatively, run ``cmd.exe``, then change to the ESP-IDF directory you wish to use, and run ``export.bat``. Note that unlike the previous option, this way requires Python and Git to be present in ``PATH``. If you get errors related to Python or Git not being found, use the first option.
  29. Next Steps
  30. ==========
  31. If the ESP-IDF Tools Installer has finished successfully, then the development environment setup is complete. Proceed directly to :ref:`get-started-start-project`.
  32. Related Documents
  33. =================
  34. For advanced users who want to customize the install process:
  35. .. toctree::
  36. :maxdepth: 1
  37. windows-setup-update
  38. .. _MSYS2: https://www.msys2.org/
  39. .. _cmake: https://cmake.org/download/
  40. .. _ninja: https://ninja-build.org/
  41. .. _Python: https://www.python.org/downloads/windows/
  42. .. _Git for Windows: https://gitforwindows.org/
  43. .. _Github Desktop: https://desktop.github.com/