esp32_w_esp-idf | Last modified: 1744481085 | Edit | Home

sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
mkdir -p ~/esp
cd ~/esp
git clone -b v5.4.1 --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf/
./install.sh all
. ./export.sh 
cd ..
cp -r $IDF_PATH/examples/get-started/hello_world/ .
cd hello_world/
idf.py set-target esp32
# idf.py menuconfig # Component config  ---> ESP System Settings  ---> Channel for console output (Default: UART0)  ---> (X) USB CDC save quit
idf.py build
idf.py -p /dev/ttyUSB0 flash monitor # ctrl-] to quit