Azure IoT ESP 32 - philipf/notebook GitHub Wiki
High-level steps to get going
- Install
debian
into WSL (Not WSL2 doesn't have support for USB devices at time of writing) - Install prerequisites:
sudo apt install build-essential
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0`
sudo usermod -a -G dialout $USER
- Install ESP samples
I had to fix
/mnt/C/*
directory to WSL home instead, because of tarCannot utime: Operation not permitted
cd ~
git clone https://github.com/Azure-Samples/ESP-Samples.git
cd ESP-Samples/install-script/
source ./esp-setup.sh
- Build app
cd ~/ESP-Samples/
cd azure-esp-starter/components/
cp -r ../../../components/esp-azure .
cd ~/ESP-Samples/
cd ~/ESP-Samples/samples/azure-esp-starter/
make menuconfig
make
make flash monitor
- Login again, after fixing
/mnt/C/*
path
source ~/ESP-Samples/install-script/esp-set-devenv.sh