Error using Timers with ISR

Ritu21
Posts: 123
Joined: Sat Aug 04, 2018 9:58 am

Error using Timers with ISR

Postby Ritu21 » 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.

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

Re: Error using Timers with ISR

Postby ESP_Sprite » Sat Feb 09, 2019 10:37 am

Pretty hard to say... smells like memory corruption, but that's about all I can make out.

Who is online

Users browsing this forum: Baidu [Spider] and 119 guests