Setup

Setup connection on breadboard (didn't work out as expected due to breadboard contact problems)

Setup connection on breadboard (didn't work out as expected due to breadboard contact problems)

Setup connection with wires directly connected (worked!)

Setup connection with wires directly connected (worked!)

The raw .drawio file is available here:

Schematic connection diagram

Schematic connection diagram

The .bin files of the project at generated at the directory ~/Documents/STM32_Projects/ledBlink/Debug

Code

ESP32 Firmware Code Setup

To set up a custom partitioning scheme here, we are using a CSV defining that:

partitioning_scheme.csv

  1. Copy partitioning_scheme.csv to Arduino partitions folder. For example: C:\\Users\\X\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\1.0.3\\tools\\partitions (Windows) ~/.arduino15/packages/esp32/hardware/esp32/1.0.4/tools/partitions (Linux)

  2. Open boards.txt folder in Arduino toolchain with any text editor. For example: C:\\Users\\X\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\1.0.3\\boards.txt (Windows) ~/.arduino15/packages/esp32/hardware/esp32/1.0.4/boards.txt (Linux)

  3. Find the following line : esp32.name=ESP32 Dev Module and then append to the end the following:

    esp32.menu.PartitionScheme.partitioning_scheme=Custom Partition (1.5MB APP/2.5MB SPIFFS)
    esp32.menu.PartitionScheme.partitioning_scheme.build.partitions=partitioning_scheme
    esp32.menu.PartitionScheme.partitioning_scheme.upload.maximum_size=1572864
    
  4. Open Arduino project and under Tools select Board: "ESP32 Dev Module“ and Partition Scheme: "Custom Partition (1.5MB APP/2.5MB SPIFFS)“