back to Arduino and ESP32-S2-Saola-1

ESP32-S2-Saola-1 Arduino installation - Windows 10

This may work on other platforms; do not ask me how. This should be a portable installation.
It is incompatible with Arduino for other boards.
  1. Download Arduino 1.8.16 Windows ZIP file
      - not (yet) Arduino 2.0
  2. Right-click the downloaded zip file; select Extract All...
      - set a destination, preferably with a short path (e.g. D:\my\Arduino)
      - Extract
  3. In that installation folder, be sure to add a portable folder:
  4. Launch arduino.exe (or a shortcut to it)
      - File > Preferences > Sketchbook location:
      - must differ from install destination or other Arduino Sketchbook locations;
      - usually in Documents\;   I used a separate D:\my\Documents\
  5. There are 2 ways to proceed. Do you feel lucky?
  6. In Arduino > File > > Preferences, set Additional Boards Manager URLs: to
    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
  7. In Arduino Sketch > Include Library > Manage Libraries.. search for tinyusb
    and select ESP32TinyUSB
  8. Eliminate Arduino build warnings for "CFG_TUSB_*" redefined in sketches using midiusb.h :
    • In my\arduino-1.8.16\portable\packages\esp32\hardware\esp32\2.0.1\tools\sdk\esp32s2\include\arduino_tinyusb\include\tusb_config.h:
    • move all unconditional #define's (COMMON CONFIGURATION and DRIVER CONFIGURATION)
      from near the file end to before #include "tusb_option.h" like this.
  9. Enable USB MIDI traffic:
    In my\Documents\libraries\ESP32TinyUSB\src\device\midi\midiusb.cpp,
    change midiusb.cpp://#define EPNUM_MIDI 0x05 to 0x04 like this
  10. In Arduino:   Tools > Board: "ESP32S2 Dev Module"
     
  11. To install custom Arduino libraries from GitHub, using GitHub Desktop
      ... which handles submodule automagically...
      In [GitHub Desktop](https://desktop.github.com):
      - File > Clone repository...
      - URL
      - fill in username/repository, e.g. chegewara/EspTinyUSB
      - fill in Local path. e.g. D:\my\Documents\libraries
      - click clone
      - Arduino's IDE console window will show invalid library complaints if this fails.
  12. Install these additional libraries

supplementary information

With 31 Aug 2021 release of ESP32 Arduino 2.0.0,
ESP32-S2 can be added to Arduino IDE using board manager,
but espressif still publishes beta board support.

OTG USB cable

Sadly, ESP32-S2-Saola-1 board USB pins GPIO19+20 are not near a ground.

iPhone "harmonica" connectors may never come back into fashion;
one with a thick cable was sacrificed:

It was double-shielded.                                 I don't crochet, but a small hook helps sort fine wires.

A pair of pins are wanted:

Power leads were easily distinguished from signal by strand count, if not color.
Note: black wire is NOT connected to shield.

A broken DIP socket helps serve up pins for tack soldering:

Hot glue comes next, for insulation and mechanical support.
maintained by blekenbleu