Connecting ESP32 using PlatformIO

Connecting ESP32 using PlatformIO

Table of Contents

How to connect and upload programs to ESP32 using PlatformIO in VSCodium.

1. Setup VSCodium.

Go through my previous Article here

2. Connect ESP32 Microcontroller with your system.

3. Create a new project.

4. Under root directory of project

Open main.cpp in /src/

Now Build the project.

Upload project.

Error while uploading

esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: '/home/atulya/Desktop/AtulsLab/ESP32Projects/Hello/.pio/build/esp32dev/bootloader.bin 0x8000 /home/atulya/Desktop/AtulsLab/ESP32Projects/Hello/.pio/build/esp32dev/partitions.bin'
*** [upload] Error 2

Solution: Reducing the path length by moving the project to Desktop helped.

Took 3 hours of mine.

Tags :