Error using Timers with ISR
Posted: Thu Feb 07, 2019 1:34 pm
Hi Team,
I need to send some data to server over HTTP after every 30 mins. To do this, tried using hardware timers (took the help from the given example "timer_group.c").
There are several task running in my code.Getting error after adding timer code with ISR. Backtraced the error as below.
Remote debugging using COM3
0x4008b082 in vTaskSwitchContext ()
at D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/freertos/tasks.c:2869
2869 listGET_OWNER_OF_NEXT_ENTRY( pxTCB, &( pxReadyTasksLists[ uxDynamicTopReady ] ) );
(gdb) bt
#0 0x4008b082 in vTaskSwitchContext ()
at D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/freertos/tasks.c:2869
#1 0x4008cfef in _frxt_dispatch ()
at D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/freertos\portasm.S:406
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Could you please help me understand what is this error saying??? How to solve this??
Thanks
R.
I need to send some data to server over HTTP after every 30 mins. To do this, tried using hardware timers (took the help from the given example "timer_group.c").
There are several task running in my code.Getting error after adding timer code with ISR. Backtraced the error as below.
Remote debugging using COM3
0x4008b082 in vTaskSwitchContext ()
at D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/freertos/tasks.c:2869
2869 listGET_OWNER_OF_NEXT_ENTRY( pxTCB, &( pxReadyTasksLists[ uxDynamicTopReady ] ) );
(gdb) bt
#0 0x4008b082 in vTaskSwitchContext ()
at D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/freertos/tasks.c:2869
#1 0x4008cfef in _frxt_dispatch ()
at D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/freertos\portasm.S:406
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Could you please help me understand what is this error saying??? How to solve this??
Thanks
R.