-
Notifications
You must be signed in to change notification settings - Fork 0
Install_Esp8266
mateoGC edited this page Sep 8, 2021
·
13 revisions
-
Configure properly your toolchain
-
Download the ESPSDK
mkdir -p ~/esp cd ~/esp git clone --recursive https://github.com/espressif/ESP8266_RTOS_SDK.git -
Define IDF_PATH in
~/.profileby adding the following lines to the end of the file:export IDF_PATH=$HOME/esp/ESP8266_RTOS_SDK export IDF_TOOL_PATH=$HOME/esp/xtensa-lx106-elf/bin:$IDF_PATH/tools -
Set up the environment variables by creating an aliias in
~/.bashrcfile by adding the following line to the end of the file:alias get_idf='. $HOME/esp/ESP8266_RTOS_SDK/export.sh' -
Get python requirements:
sudo apt-get install pip python3 -m pip install --user -r $IDF_PATH/requirements.txt -
Set up the tools:
-
Linux and Mac OS
. $HOME/esp/ESP8266_RTOS_SDK/install.shinstall
cmakesudo apt install cmake -
Windows
-
-
install
cmakesudo apt install cmake
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
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'
idf.py flash
Remember to set your desired desired bitrate on the MONITOR_BAUD, if not defaults to 74880