Page 1 of 1

Error using Timers with ISR

Posted: Thu Feb 07, 2019 1:34 pm
by Ritu21
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.

Re: Error using Timers with ISR

Posted: Sat Feb 09, 2019 10:37 am
by ESP_Sprite
Pretty hard to say... smells like memory corruption, but that's about all I can make out.