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
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
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.