Skip to content

Instantly share code, notes, and snippets.

@cristovao-trevisan
Last active February 7, 2020 21:03
Show Gist options
  • Save cristovao-trevisan/33392e9aea5f57c71dc9a980e1e3b609 to your computer and use it in GitHub Desktop.
Save cristovao-trevisan/33392e9aea5f57c71dc9a980e1e3b609 to your computer and use it in GitHub Desktop.
Install ESP IDF
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"
cd ~/esp
cp -r esp-idf/examples/get-started/blink .
cd blink
idf.py build
idf.py size
idf.py flash
idf.py monitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment