This guide explains how to configure the Arduino core for the ESP32 required for TWELITE SPOT firmware development.
From here on, the content is specific to TWELITE SPOT.
Selecting the Board Type
From the toolbar, select Tools → Board → ESP32 Arduino → ESP32 Dev Module.

Location of ESP32 Dev Module
Board Settings
Please configure as shown in the image below.

Settings after configuration
By default, the Flash size
is set to 4MB (32Mb)
.
Please change this to 16MB (128Mb)
.