Skip to content

Install_Esp32

Julian Bustamante edited this page Sep 1, 2021 · 1 revision

  1. Configure properly your toolchain

    1. Linux
    2. Windows
    3. Mac OS
  2. Download the ESPSDK

       mkdir -p ~/esp
       cd ~/esp
       git clone --recursive https://github.com/espressif/esp-idf.git
    
  3. Set up the tools:

    1. Linux and Mac OS
        cd ~/esp/esp-idf
        ./install.sh esp32
      
    2. Windows
        cd %userprofile%\esp\esp-idf
        install.bat esp32
      
  4. Set up the environment variables:

    1. Linux and Mac OS
        . $HOME/esp/esp-idf/export.sh
      
    2. Windows
        %userprofile%\esp\esp-idf\export.bat
      

Configure

idf.py menuconfig

Build

idf.py build Remember set up the environment variables runing get_idf to set up or refresh the esp-idf environment in any terminal session

  alias get_idf='. $HOME/esp/esp-idf/export.sh'

Flash

idf.py flash Remember to set your desired desired bitrate on the MONITOR_BAUD, if not defaults to 74880

Clone this wiki locally