when using the psram 'PRO CPU has been reset by WDT " error throw while initializing the spiffs.

Raghav Jha
Posts: 15
Joined: Thu Feb 25, 2021 9:59 am

when using the psram 'PRO CPU has been reset by WDT " error throw while initializing the spiffs.

Postby Raghav Jha » Tue Mar 29, 2022 3:52 pm

Hello,

I m using the psram with 16mb flash size, there I want to write something on file. For that, when I initialize the spiffs, esp32 crash and throw the below error.

It happen when I enable psram support in menuconfig.

Logs:
I (89283) irFileSystem.c: Searching remote db at path /spiffs/db.json
ets Jun 8 2016 00:22:57

rst:0x8 (TG1WDT_SYS_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:0x3fff0030,len:4
load:0x3fff0034,len:7828
load:0x40078000,len:14204
load:0x40080400,len:4632
0x40080400: _init at ??:?

entry 0x400806f4
I (58) boot: ESP-IDF HEAD-HASH-NOTFOUND 2nd stage bootloader
I (58) boot: compile time 19:53:44
I (58) boot: chip revision: 1
I (62) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (69) boot.esp32: SPI Speed : 40MHz
I (74) boot.esp32: SPI Mode : DIO
I (79) boot.esp32: SPI Flash Size : 16MB
W (83) boot.esp32: PRO CPU has been reset by WDT.
W (89) boot.esp32: WDT reset info: PRO CPU PC=0x4009777c
0x4009777c: xthal_save_extra_nw at /Users/igrokhotkov/e/esp32/hal/hal/state_asm.S:72

W (95) boot.esp32: WDT reset info: APP CPU PC=0x7ec348a5
I (101) boot: Enabling RNG early entropy source...
I (106) boot: Partition Table:
I (110) boot: ## Label Usage Type ST Offset Length
I (117) boot: 0 nvs WiFi data 01 02 00010000 00006000
I (125) boot: 1 otadata OTA data 01 00 00016000 00002000
I (132) boot: 2 phy_init RF data 01 01 00018000 00001000
I (140) boot: 3 factory factory app 00 00 00020000 00200000
I (147) boot: 4 ota_0 OTA app 00 10 00220000 00200000
I (155) boot: 5 ota_1 OTA app 00 11 00420000 00200000
I (162) boot: 6 file Unknown data 01 82 00620000 00600000
I (170) boot: 7 storage WiFi data 01 02 00c20000 00010000
I (178) boot: End of partition table
I (182) boot: Defaulting to factory image
I (187) boot_comm: chip revision: 1, min. application chip revision: 0
I (194) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x49730 (300848) map
I (328) esp_image: segment 1: paddr=0x00069758 vaddr=0x3ffbdb60 size=0x04420 ( 17440) load
I (337) esp_image: segment 2: paddr=0x0006db80 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at /home/horsemann/Desktop/WorkSpace/universal_remote_v202107/build/../freertos/freertos_kernel/portable/ThirdParty/GCC/Xtensa_ESP32/xtensa_vectors.S:1851

I (337) esp_image: segment 3: paddr=0x0006df8c vaddr=0x40080404 size=0x0208c ( 8332) load
I (348) esp_image: segment 4: paddr=0x00070020 vaddr=0x400d0020 size=0x1052cc (1069772) map
0x400d0020: _stext at ??:?

I (799) esp_image: segment 5: paddr=0x001752f4 vaddr=0x40082490 size=0x1cc9c (117916) load
0x40082490: r_huart_finish_transfers at ??:?

I (856) esp_image: segment 6: paddr=0x00191f98 vaddr=0x50000000 size=0x0000c ( 12) load
I (873) boot: Loaded app from partition at offset 0x20000
I (874) boot: Disabling RNG early entropy source...
I (874) psram: This chip is ESP32-D0WD
I (879) spiram: Found 64MBit SPI RAM device
I (883) spiram: SPI RAM mode: flash 40m sram 40m
I (888) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (895) cpu_start: Pro cpu up.
I (899) cpu_start: Application information:
I (904) cpu_start: Project name: firewires_freertos
I (910) cpu_start: App version: 1
I (914) cpu_start: Compile time: Mar 29 2022 18:38:05
I (920) cpu_start: ELF file SHA256: 61f2f912bd312f04...
I (926) cpu_start: ESP-IDF: 4.2.2
I (932) cpu_start: Single core mode
I (1827) spiram: SPI SRAM memory test OK
I (1828) heap_init: Initializing. RAM available for dynamic allocation:
I (1828) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (1834) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (1840) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (1846) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (1853) heap_init: At 3FFD4FA8 len 0000B058 (44 KiB): DRAM
I (1859) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (1865) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (1872) heap_init: At 4009F12C len 00000ED4 (3 KiB): IRAM
I (1878) cpu_start: Pro cpu start user code
I (1883) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1907) spi_flash: detected chip: gd
I (1907) spi_flash: flash io: dio
I (1908) cpu_start: Starting scheduler on PRO CPU.
I (1910) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
E (1930) uart: uart_param_config(649): rx flow thresh error
0 2 [main] Initializing lwIP TCP stack
I (3050) BTDM_INIT: BT controller compile version [a4c513b]
I (3050) system_api: Base MAC address is not set
I (3050) system_api: read default base MAC address from EFUSE
I (3060) phy_init: phy_version 4660,0162888,Dec 23 2020
GAP procedure initiated: advertise; disc_mode=2 adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=187 adv_itvl_max=375
I (3470) wifi:wifi driver task: 3ffe6fb8, prio:23, stack:6656, core=0
I (3470) wifi:wifi firmware version: c44a5e7
I (3470) wifi:wifi certification version: v7.0
I (3470) wifi:config NVS flash: enabled
I (3470) wifi:config nano formating: disabled
I (3480) wifi:Init data frame dynamic rx buffer num: 32
I (3480) wifi:Init management frame dynamic rx buffer num: 32
I (3490) wifi:Init management short buffer num: 32
I (3490) wifi:Init static tx buffer num: 16
I (3500) wifi:Init tx cache buffer num: 32
I (3500) wifi:Init static rx buffer size: 1600
I (3500) wifi:Init static rx buffer num: 10
I (3510) wifi:Init dynamic rx buffer num: 32
I (3510) wifi_init: rx ba win: 6
I (3520) wifi_init: tcpip mbox: 32
I (3520) wifi_init: udp mbox: 6
I (3520) wifi_init: tcp mbox: 6
I (3530) wifi_init: tcp tx win: 5744
I (3530) wifi_init: tcp rx win: 5744
I (3540) wifi_init: tcp mss: 1440
I (3540) wifi_init: WiFi/LWIP prefer SPIRAM
I (3540) wifi_init: WiFi RX IRAM OP enabled
1 164 [WiFiManagement] WiFi Disconnected. Trying to connect to provisioned networks.

Code: Select all

void vSpiffsInit(void)
{
    esp_vfs_spiffs_conf_t conf = {
        .base_path = SPIFFS,
        .partition_label = NULL,
        .max_files = MAX_FILE_SPIFFS_SAVES,
        .format_if_mount_failed = true};

    esp_err_t ret = esp_vfs_spiffs_register(&conf);

    if (ret != ESP_OK)
    {
        ESP_LOGE(TAG, "Failed to initialize spiffs partition error. (%s)", esp_err_to_name(ret));
        return;
    }

    size_t total = 0, used = 0;
    ret = esp_spiffs_info(NULL, &total, &used);
    if (ret != ESP_OK)
    {
        ESP_LOGE(TAG, "Failed to get SPIFFS partition information (%s)", esp_err_to_name(ret));
    }
    else
    {
        ESP_LOGI(TAG, "Partition size: total: %d, used: %d", total, used);
    }
    return;
}


ESP_LOGI(TAG, "Searching file %s at path %s ", file, filepath);
vSpiffsInit();

ReyWamba
Posts: 3
Joined: Sun Mar 28, 2021 10:45 am

Re: when using the psram 'PRO CPU has been reset by WDT " error throw while initializing the spiffs.

Postby ReyWamba » Thu Feb 01, 2024 6:56 pm

I have same problem. Does anyone know the solution?

Thanks.

Who is online

Users browsing this forum: No registered users and 79 guests