Skip to content

Install_Esp8266

Julian Bustamante edited this page Sep 1, 2021 · 13 revisions

  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/ESP8266_RTOS_SDK.git
    
  3. Get requirements: python -m pip install --user -r $IDF_PATH/requirements.txt

  4. Get your IDF Paths

      export IDF_PATH=$HOME/esp/ESP8266_RTOS_SDK
      export IDF_TOOL_PATH=$HOME/esp/xtensa-lx106-elf/bin:$IDF_PATH/tools
    
    
  5. Set up the tools:

    1. Linux and Mac OS

        . $HOME/esp/ESP8266_RTOS_SDK/install.sh
      

      in ~/.profile paste

        export PATH="$PATH:$HOME/esp/xtensa-lx106-elf/bin"
        alias get_lx106='export PATH="$PATH:$HOME/esp/xtensa-lx106-elf/bin"'
      
    2. Windows

      
      
  6. Set up the environment variables:

    1. Linux and Mac OS
        . $HOME/esp/ESP8266_RTOS_SDK/export.sh
      
    2. Windows
        
      
  7. install cmake sudo apt install cmake

Configure

  make menuconfig CONFIG_SDK_PYTHON=python3
  xtensa-lx106-elf
  xtensa-esp32-elf
  python3 ) python2 as interpreter

  sudo usermod -a -G dialout $USER 
  sudo chmod -R 777 /dev/ttyUSBx

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/ESP8266_RTOS_SDK/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