ESP_LOGI causes to crash

User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

ESP_LOGI causes to crash

Postby arunbm123 » Sun Mar 24, 2019 4:52 pm

hello friends

Why the line ESP_LOGI(TAG, "============inside blink_task ============! ");
caused esp32 to crash..
what is reason

Code: Select all

void blink_task(void *pvParameter)
{
    /* Configure the IOMUX register for pad BLINK_GPIO (some pads are
       muxed to GPIO on reset already, but some default to other
       functions and need to be switched to GPIO. Consult the
       Technical Reference for a list of pads and their default
       functions.)
    */
    gpio_pad_select_gpio(BLINK_GPIO);
    /* Set the GPIO as a push/pull output */
    gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
    while(1) {

      [b]  ESP_LOGI(TAG,  "============inside blink_task ============! ");[/b]
        /* Blink off (output low) */
        gpio_set_level(BLINK_GPIO, 0);
        
		vTaskDelay(10000 / portTICK_PERIOD_MS);
        /* Blink on (output high) */
        gpio_set_level(BLINK_GPIO, 1);
    
		vTaskDelay(5000 / portTICK_PERIOD_MS);

    }
}

User avatar
ESP_krzychb
Posts: 394
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ESP_LOGI causes to crash

Postby ESP_krzychb » Sun Mar 24, 2019 5:45 pm

Hi arunbm123,

You may need to increase task stack size.

User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

Re: ESP_LOGI causes to crash

Postby arunbm123 » Mon Mar 25, 2019 3:17 am

hello krzychb

Thanks krzychb , This solved the problem.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 209 guests