Skip to content

Instantly share code, notes, and snippets.

@crosstyan
Last active July 19, 2023 03:32
Show Gist options
  • Save crosstyan/233e74538e8dfb836d3aed8f2444ec73 to your computer and use it in GitHub Desktop.
Save crosstyan/233e74538e8dfb836d3aed8f2444ec73 to your computer and use it in GitHub Desktop.
Use Arudino with ESP IDF 5.1

Use Arudino with ESP IDF 5.1

Install ESP IDF

git clone https://github.com/espressif/esp-idf -b v5.1 --depth=1 --recursive
cd esp-idf
./install.sh
source export.sh

Use Arduino in Project

# You're in the root of your project
mkdir components
cd components
git clone https://github.com/espressif/arduino-esp32 -b esp-idf-v5.1-libs --depth=1 --recursive arduino
git clone https://github.com/espressif/esp-protocols --depth=1
# Arduino would complain missing `mdns`
ln -s esp-protocols/components/mdns .
cd ..
vim sdkconfig
# change CONFIG_FREERTOS_HZ to 1000
idf.py build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment