AnsweredAssumed Answered

MQX3.4 _klog_show_stack_usage() not working

Question asked by Carl Norman on Apr 16, 2013
Latest reply on Apr 23, 2013 by Carl Norman

Hi,

 

I just ran the hello2 example in MQX3.4 with

 

 

void world_task

   (

      uint_32 initial_data

   )

{

   _task_id hello_task_id;

 

 

   hello_task_id = _task_create(0, HELLO_TASK, 0);

   if (hello_task_id == MQX_NULL_TASK_ID) {

      printf ("\n Could not create hello_task\n");

   } else {

      printf(" World \n");

   }

//ADDED CODE TO SHOW STACK USAGE

  _klog_show_stack_usage();

  fflush(stdout);

  _time_delay(1000);

  

   _task_block();

}

 

 

Here is the console output:

 

Hello

World

Stack usage:

 

 

Interrupt stack:    size 00001024    used 00000000

 

 

SIZE                  USED                 TASK ID      NAME

00000996(000003E4)    00000428(000001AC)   00010001     world

-536819368(E000C958)    -536819368(E000C958)   000035B6     JÈNs/R,H`ÙSfú,_Nu/,HN¹

 

I have a full production project which uses this feature in MQX3.7 (and has since MQX3.0), but suddenly it has this result!

 

 

Outcomes