Azure IoT ESP 32 - philipf/notebook GitHub Wiki

High-level steps to get going

  1. Install debian into WSL (Not WSL2 doesn't have support for USB devices at time of writing)
  2. 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
  1. Install ESP samples I had to fix /mnt/C/* directory to WSL home instead, because of tar Cannot utime: Operation not permitted
cd ~
git clone https://github.com/Azure-Samples/ESP-Samples.git
cd ESP-Samples/install-script/
source ./esp-setup.sh
  1. 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
  1. Login again, after fixing /mnt/C/* path
source ~/ESP-Samples/install-script/esp-set-devenv.sh