PlatformIO Community

ESP32 S3 continuously resetting instead of printf'ing anything

On my ESP32 S3 board… why am I getting just repeated…

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x10 (RTCWDT_RTC_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3fce3808,len:0x164c
ets_loader.c 78

My platformio.ini is simply:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = espidf
monitor_speed = 115200

and main.c is simply:

#include <stdio.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_chip_info.h"
#include "esp_flash.h"

void app_main(void)
{
    for (;;) {
        printf("Hello world!\n");
        vTaskDelay(1000/portTICK_PERIOD_MS);
    }
}

Seems like this should simply work. What stupid thing have I done wrong? The board I’m using is either the Heltec Wifi Kit V3 or the Lilygo T-Display S3.

Try what’s said in Boot loop on ESP32-C3 · Issue #622 · platformio/platform-espressif32 · GitHub, aka adding

board_build.flash_mode = dio

into the platformoi.ini.

You’re a prince among men! Worked like a charm.

1 Like