Stack Measurement with FREE RTOS Version 8.0.1

jaswanthkamadan wrote on Wednesday, June 21, 2017:

Sorry i forgot to remove the static keyword, While testing i kept it.

see the code below …

void EL_WatchDog_Task(void)
{
uint16 temp[30] = {0};

if(TRUE == EL_Wdog_InitFlag)
{
if(FALSE == DTCLogFlag)
{
(void)ML_WDog_ReloadWDog();

      EL_WatchDog_Funce();
}

}
}

assembly first line pointing to uint16 temp[30] = {0}; line.

assembly snippet attached below.

rtel wrote on Wednesday, June 21, 2017:

I have just downloaded the instruction set manual - which you could have
done yourself - and see that the sequence of std instructions are
storing bytes from the D register to two consecutive addresses and it
appears to be using stack pointer offset addressing. It is not clear
that the stack pointer itself is updated though.

This is well outside of FreeRTOS support - so I will let you pick it up
from here.

jaswanthkamadan wrote on Wednesday, June 21, 2017:

ok Thank you