Setup environment for ESP32 development
In new terminal, set up environment variables:
. $HOME/esp/esp-idf/export.sh
Configure project:
cd imu-kalman
idf.py set-target esp32
idf.py menuconfig
Build
idf.py build
Flash
First, determine serial port:
ls /dev/tty* # linux
ls /dev/cu* # mac
Then flash:
idf.py -p PORT [-b BAUD] flash