Last active
February 7, 2020 21:03
-
-
Save cristovao-trevisan/33392e9aea5f57c71dc9a980e1e3b609 to your computer and use it in GitHub Desktop.
Install ESP IDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "\n\nCloning IDF v3.3.1\n\n" | |
mkdir -p ~/esp | |
cd ~/esp | |
git clone --branch v3.3.1 --recursive git@github.com:espressif/esp-idf.git | |
echo "Installing components\n\n" | |
cd esp-idf | |
./install.sh | |
echo "Setting up environment\n\n" | |
IDF_PATH=$HOME/esp/esp-idf | |
echo "export IDF_PATH=$IDF_PATH" >> ~/.zprofile | |
echo ". $IDF_PATH/export.sh > /dev/null" >> ~/.zprofile | |
echo "Executing export.sh" | |
. ./export.sh | |
echo "\n\nDONE\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/esp | |
cp -r esp-idf/examples/get-started/blink . | |
cd blink | |
idf.py build | |
idf.py size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
idf.py flash | |
idf.py monitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment