Keep getting RTCWDT_SYS_RESET

richard.kang
Posts: 8
Joined: Tue Mar 01, 2016 7:25 am

Keep getting RTCWDT_SYS_RESET

Postby richard.kang » Thu Nov 15, 2018 3:20 pm

I am trying to write a blinky on ESP32 ESP-WROVER-KIT v4 as below, but keep getting RTCWDT_SYS_RESET as error stacks after the codes

What is the best way to debug this? I couldn't get the Watchdog to trigger the debug on the wrover-kit
  1. /* Standard includes. */
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. /* FreeRTOS includes. */
  6. #include "FreeRTOS.h"
  7. #include "task.h"
  8.  
  9. #include "driver/gpio.h"
  10.  
  11. void LEDBlinkTask (void *pvParameters)
  12. {
  13. //  configPRINTF( ( "Setting GPIO direction...\r\n" ) );
  14.     gpio_set_direction(GPIO_NUM_2,GPIO_MODE_OUTPUT);
  15.     while(1)
  16.     {
  17.         vTaskDelay( pdMS_TO_TICKS( 10000 ) );
  18.         gpio_set_level(GPIO_NUM_2, 1);
  19.  
  20.         vTaskDelay( pdMS_TO_TICKS( 10000 ) );
  21.         gpio_set_level(GPIO_NUM_2, 0);
  22.     }
  23. }
  24.  
  25. void vStartLEDblinkTask( void )
  26. {
  27.     BaseType_t xReturned;
  28.     configPRINTF( ( "Blink...\r\n" ) );
  29.  
  30.     xReturned = xTaskCreate(LEDBlinkTask, "Blink", 256, NULL, tskIDLE_PRIORITY, NULL);
  31.     if( xReturned == pdPASS )
  32.     {
  33.         configPRINTF( ( "Blink task created...\r\n" ) );
  34.     }
  35. }
I (17) cpu_start: Starting scheduler on PRO CPU.
0 0 [main] Blink...
1 0 [main] Blink task created...
ets Jun 8 2016 00:22:57

rst:0x9 (RTCWDT_SYS_RESET),boot:0x3e (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:6148
load:0x40078000,len:0
load:0x40078000,len:15784
entry 0x400792e8
W (29) boot: PRO CPU has been reset by WDT.
W (29) boot: WDT reset info: PRO CPU PC=0x40085c91
0x40085c91: _xt_context_save at /Users/kangrich/Documents/workspace/AWS_IoT-kangrich/amazon-freertos-master/lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/xtensa_context.S:168

W (29) boot: WDT reset info: APP CPU PC=0xe9edcd2a
I (35) boot: ESP-IDF v3.1-dev-322-gf307f41-dirty 2nd stage bootloader
I (42) boot: compile time 21:18:15
I (48) boot: Enabling RNG early entropy source...
I (51) boot: SPI Speed : 40MHz
I (56) boot: SPI Mode : DIO
I (60) boot: SPI Flash Size : 4MB
I (64) boot: Partition Table:
I (67) boot: ## Label Usage Type ST Offset Length
I (75) boot: 0 nvs WiFi data 01 02 00010000 00006000
I (82) boot: 1 otadata OTA data 01 00 00016000 00002000
I (89) boot: 2 phy_init RF data 01 01 00018000 00001000
I (97) boot: 3 ota_0 OTA app 00 10 00020000 00100000
I (104) boot: 4 ota_1 OTA app 00 11 00120000 00100000
I (112) boot: 5 storage Unknown data 01 82 00220000 00010000
I (120) boot: End of partition table
E (124) boot: ota data partition invalid and no factory, will try all partitions
I (132) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x0be70 ( 48752) map
I (158) esp_image: segment 1: paddr=0x0002be98 vaddr=0x3ffb0000 size=0x018d0 ( 6352) load
I (161) esp_image: segment 2: paddr=0x0002d770 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at /Users/kangrich/Documents/workspace/AWS_IoT-kangrich/amazon-freertos-master/lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/xtensa_vectors.S:1685

I (165) esp_image: segment 3: paddr=0x0002db78 vaddr=0x40080400 size=0x02498 ( 9368) load
I (177) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x3c9e8 (248296) map
0x400d0018: _stext at ??:?

I (269) esp_image: segment 5: paddr=0x0006ca08 vaddr=0x40082898 size=0x05d98 ( 23960) load
0x40082898: pthread_mutex_timedlock at /Users/kangrich/Documents/workspace/AWS_IoT-kangrich/amazon-freertos-master/lib/third_party/mcu_vendor/espressif/esp-idf/components/pthread/pthread.c:133

I (279) esp_image: segment 6: paddr=0x000727a8 vaddr=0x400c0000 size=0x00000 ( 0) load
I (284) boot: Loaded app from partition at offset 0x20000
I (284) boot: Disabling RNG early entropy source...
I (289) cpu_start: Pro cpu up.
I (293) cpu_start: Single core mode
I (297) heap_init: Initializing. RAM available for dynamic allocation:
I (304) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (310) heap_init: At 3FFBAD88 len 00025278 (148 KiB): DRAM
I (316) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (323) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (329) heap_init: At 40088630 len 000179D0 (94 KiB): IRAM
I (335) cpu_start: Pro cpu start user code
I (17) cpu_start: Starting scheduler on PRO CPU.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Keep getting RTCWDT_SYS_RESET

Postby ESP_Sprite » Fri Nov 16, 2018 4:09 am

Where's your main() function and what does it do?

Who is online

Users browsing this forum: Bing [Bot] and 129 guests