ESP32 -WROWER-IE SD Issue

Phoedus
Posts: 5
Joined: Fri Mar 31, 2023 7:52 am

ESP32 -WROWER-IE SD Issue

Postby Phoedus » Thu Aug 31, 2023 9:35 am

hello guys,

I've been having big problems using a micro SD for several days, please help me, I've read everything I could online without finding compatible solutions to my situation.

If I'm using the simple Arduino example: "SD_Test" it works fine.
I checked the hardware several times even plugging in a microSD->SD adapter without different results.
I believe that the problem is related to the driver, but I really don't know how to fix it.

HW details:
I'm using SPI2:
MISO = SPI2_MISO = 12
MOSI = SPI2_MISO = 13
CLK = SPI2_CLK = 14
CS = SPI2_CS_SD = 5



I'm using an ESP32 dev module (ESP32-WROVER-IE) with paltformio,
[env:esp-wrover-kit]
platform = espressif32@4.2.0
board = esp-wrover-kit
framework = arduino
board_build.partitions = default_16MB.csv
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216

I'm using FreeRTOS and I have a Task for SD handler:
xTaskCreatePinnedToCore( startTask_SD, "Task SD", 8000, NULL, 10, &task_SD, 1);

I've created a simplified version to illustrate the problem:

about gpio configuration:

Code: Select all

	gpio_config_t pin_config;

        //--> Configure SPI 2 MOSI
        pin_config.pin_bit_mask = BIT64(SPI2_MOSI);
        pin_config.mode         = GPIO_MODE_OUTPUT; 
        pin_config.pull_up_en   = GPIO_PULLUP_DISABLE;
        pin_config.pull_down_en = GPIO_PULLDOWN_DISABLE;
        pin_config.intr_type    = GPIO_INTR_DISABLE;
        gpio_config(&pin_config);

        //--> Configure SPI 2 MISO
        pin_config.pin_bit_mask = BIT64(SPI2_MISO); 
        pin_config.mode         = GPIO_MODE_INPUT; 
        pin_config.pull_up_en   = GPIO_PULLUP_ENABLE;
        pin_config.pull_down_en = GPIO_PULLDOWN_DISABLE;
        pin_config.intr_type    = GPIO_INTR_DISABLE;
        gpio_config(&pin_config);
        
        //--> Configure SPI 2 CS 
        pin_config.pin_bit_mask = BIT64(SPI2_CS_SD);
        pin_config.mode         = GPIO_MODE_OUTPUT; 
        pin_config.pull_up_en   = GPIO_PULLUP_DISABLE; //(external pullup: 1K is connected via HW)
        pin_config.pull_down_en = GPIO_PULLDOWN_DISABLE;
        pin_config.intr_type    = GPIO_INTR_DISABLE;
        gpio_config(&pin_config);
Here the initialization function of SD:
info from "config.h", included inside the .cpp
#define SD_DATA_DIR "/data"
#define SD_OUTPUT_DIR "/output"
#define SD_OUTPUT_FILE "/out.txt"

Code: Select all


bool init_sd(void)
{
    bool retval = false;
    SPI_SD.begin(SPI2_CLK, SPI2_MISO, SPI2_MOSI, SPI2_CS_SD);
    vTaskDelay(500 / portTICK_PERIOD_MS); //it was 500 and was good

    if(!SD.begin(SPI2_CS_SD, SPI_SD, 1000000U, "", 5, false))
    {
        ESP_LOGE(TAG, "ERROR SD NOT INIT");
        SD.end();
        SPI_SD.end();
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }
    else
    {
        if(SD.cardType() != CARD_NONE)
        {
            // Create all the necessary directory
            File root = SD.open(SD_DATA_DIR, FILE_READ, true);
            if(!root.isDirectory()) // Not a directory, it is necessary to create it
            {
                if(createDir(SD, SD_DATA_DIR)) // "/data" directory
                {
                    ESP_LOGI(TAG, "%s created!", SD_DATA_DIR);
                }
            }
            root.close();
            retval = true;
        }
        else
        {
            ESP_LOGE("SD Card Type = NONE");
        }
    }
    return retval;
}
This is the SD TASK:

Code: Select all

void startTask_SD(void *parameters)
{
    // Create queue
    sdMsg_queue = xQueueCreate(SD_MSG_BUF_MAX_LEN, (sizeof(data_to_post_t)));
    sd_handler_e sd_status = SD_INIT;

    memset(filename, '\0', sizeof(filename));
    
    while(1)
    {
        switch (sd_status)
        {
            case SD_INIT:
            {
                if(!init_sd())
                {
                    ESP_LOGE(TAG, "SD NOT INIT");
                }
                else
                {
                    ESP_LOGD(TAG, "SD INIT");
                    sd_status = SD_RUN;
                }
                break;
            }
            case SD_RUN:
            {
                char title[17];

                for(int i=0; i< 20; i++)
                {
                    memset(title, '\0', sizeof(title));
                    snprintf(title, sizeof(title), "/data/file%02d.txt", i);

                    ESP_LOGD(TAG, "SD: %s", title);
                    //----- Try to create and write file inside the SD
                    writeFile(SD, title, "123456789101112131415161718192021222324252627282930");
                    vTaskDelay(1000 / portTICK_PERIOD_MS);
                }
                sd_status = SD_END;
                break;
            }
            case SD_END:
            {
                vTaskDelay(100 / portTICK_PERIOD_MS);
                break;
            }
        }
        vTaskDelay(10 / portTICK_PERIOD_MS);
    }
}

There are other tasks that work together but I use mutexes and no tasks compromise the SD task.
These are the error messages that the program returns (from file "/data/file06.txt"):
What I observe is that only the first file is written, the others are not ;(

Code: Select all

[ 16533][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file06.txt
[ 16534][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 16634][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 16734][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 16848][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 16848][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 16850][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 16955][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17055][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17155][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 17155][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 17157][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17262][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17362][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17525][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 17525][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 17527][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17632][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17732][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17833][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 17833][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 17835][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 17940][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 18040][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 18140][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 18140][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 18141][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 19147][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file07.txt
[ 19148][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19249][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19349][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19449][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 19449][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 19451][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19556][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19656][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19756][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 19756][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 19758][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19863][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 19963][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 20063][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 20063][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 20065][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 20170][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 20270][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 20370][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 20370][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 20372][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 20524][W][sd_diskio.cpp:180] sdCommand(): crc error
[ 20624][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 20724][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 20724][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 20725][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 21731][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file08.txt
[ 21732][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 21833][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 21933][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22033][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 22033][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 22035][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22140][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22240][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22340][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 22340][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 22342][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22447][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22547][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22647][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 22647][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 22649][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22754][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22855][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 22956][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 22956][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 22958][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 23063][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 23163][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 23263][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 23263][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 23264][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 24270][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file09.txt
[ 24271][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24372][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24472][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24572][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 24572][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 24574][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24679][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24779][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24879][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 24879][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 24881][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 24986][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25086][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25186][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 25186][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 25188][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25293][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25393][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25493][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 25493][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 25495][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25600][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25700][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 25800][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 25800][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 25801][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 26807][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file10.txt
[ 26846][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 26947][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27047][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27147][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x3b
[ 27147][W][sd_diskio.cpp:526] ff_sd_initialize(): CRC_ON_OFF failed: 255
[ 27149][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27254][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27354][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27454][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 27454][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 27456][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27561][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27661][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27761][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 27761][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 27763][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27868][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 27969][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 28069][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 28069][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 28071][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 28176][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 28276][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 28376][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 28376][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 28377][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 29383][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file11.txt
[ 29384][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 29485][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 29585][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 29685][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 29685][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 29687][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 29792][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 29892][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 29992][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 29992][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 29994][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30099][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30199][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30299][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 30299][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 30301][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30406][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30506][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30606][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 30606][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 30608][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30713][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 30845][W][sd_diskio.cpp:186] sdCommand(): token error [0] 0x7
[ 30845][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 30846][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 31852][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file12.txt
[ 31853][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 31953][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32053][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32153][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 32153][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 32155][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32260][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32360][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32460][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 32460][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 32462][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32567][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32667][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32767][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 32767][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 32769][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32874][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 32975][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 33075][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 33075][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 33077][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 33182][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 33283][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 33383][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 33383][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 33384][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 34390][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file13.txt
[ 34391][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 34536][W][sd_diskio.cpp:180] sdCommand(): crc error
[ 34637][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 34737][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 34737][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 34739][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 34849][W][sd_diskio.cpp:186] sdCommand(): token error [0] 0x3
[ 34849][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 34851][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 34956][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35056][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35156][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 35156][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 35158][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35263][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35363][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35518][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 35518][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 35520][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35625][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35725][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 35825][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 35825][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 35826][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 36832][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file14.txt
[ 36845][W][sd_diskio.cpp:186] sdCommand(): token error [0] 0x64
[ 36846][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 36847][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 36952][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37052][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37152][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 37152][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 37154][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37259][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37359][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37459][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 37459][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 37461][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37566][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37666][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37766][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 37766][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 37768][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37873][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 37974][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 38074][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 38074][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 38075][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 39081][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file15.txt
[ 39082][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39183][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39283][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39383][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 39383][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 39385][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39490][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39590][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39690][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 39690][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 39692][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39797][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39897][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 39997][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 39997][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 39999][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 40104][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 40204][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 40304][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 40304][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 40306][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 40411][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 40511][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 40611][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 40611][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 40612][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 41618][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file16.txt
[ 41619][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 41720][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 41820][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 41920][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 41920][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 41922][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42027][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42127][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42227][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 42227][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 42229][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42334][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42434][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42534][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 42534][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 42536][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42641][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42741][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42847][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 42847][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 42849][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 42954][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 43054][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 43087][D][ipoi_clock.cpp:91] Task_Clock(): TIME NOT UPDATED
[ 43087][D][ipoi_clock.cpp:96] Task_Clock(): TIME: 31/8/23      11:13:39
[ 43154][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 43154][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 43155][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 44161][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file17.txt
[ 44162][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44263][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44363][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44463][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 44463][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 44465][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44570][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44670][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44770][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 44770][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 44772][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44877][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 44977][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45077][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 45077][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 45079][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45184][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45284][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45384][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 45384][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 45386][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45491][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45591][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 45691][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 45691][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 45692][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 46698][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file18.txt
[ 46699][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 46844][W][sd_diskio.cpp:180] sdCommand(): crc error
[ 46945][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47045][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 47045][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 47047][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47152][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47252][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47352][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 47352][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 47354][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47459][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47559][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47659][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 47659][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 47661][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47766][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47867][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 47968][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 47968][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 47970][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 48075][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 48175][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 48275][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 48275][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 48276][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
[ 49282][D][ipoi_sd.cpp:734] startTask_SD(): SD: /data/file19.txt
[ 49283][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 49384][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 49539][W][sd_diskio.cpp:180] sdCommand(): crc error
[ 49639][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 49640][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 49740][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 49840][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 49940][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 49940][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 49942][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50047][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50147][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50247][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 50247][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 50249][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50354][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50454][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50554][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[ 50554][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[ 50556][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50722][W][sd_diskio.cpp:180] sdCommand(): crc error
[ 50854][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 50955][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 51055][W][sd_diskio.cpp:174] sdCommand(): no token received
[ 51155][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x3b
[ 51155][W][sd_diskio.cpp:526] ff_sd_initialize(): CRC_ON_OFF failed: 255
[ 51156][E][vfs_api.cpp:83] open(): Creating folder: /data failed!
I'm really desperate, but if you have any ideas it would be very welcome, thank you very much <3

Who is online

Users browsing this forum: chegewara and 75 guests