I added the following line to my platformio.ini:
board_build.partitions = default_16MB.csv
which has these additional settings:
platform = espressif32 board = esp32dev framework = arduino
I have a homemade ESP32 board with 16MB flash.
Using a partition table designed for 8 and 16 MB leads to a loop.
rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
At the same time, compiling the project in the Arduino IDE with this partition table writes working code.
The whole problem lies only in the configuration of the partition table through PlatformIO.