This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AWR1642BOOST: Not able to print any statement using sytem_printf in SRR_demo in debug mode

Part Number: AWR1642BOOST

Tool/software: Code Composer Studio

Hi ,

During debugging of the SRR demo , i would like to print some statements in mss_srr_cli.c as well as in cfg.c using System_printf command.

 In mss_srr_cli.c  inside  the function SRR_MSS_CLIInit (), after the statement  System_printf ("Debug: CLI is operational\n") i am able to insert a new print statement and also able to see the corresponding result on the console window  . i am following the relevant steps of saving as well as re-building the source codes for all the cases.

i am trying to print  some statements inside the handler function cliCfg.tableEntry[0].cmdHandlerFxn  = SRR_MSS_CLIBasicCfg( ) using System_printf command but it doesn't.

Note : I am including the Header file  #include <xdc/runtime/System.h> in cfg.c also 

Please help me in solving this issue as i am interested to print the values of certain structure variables in mss_srr_cli.c

Thanks,

Pritam

  • Hi Pritam,

    Do you see other system_printf on the console which is at the end of this function SRR_MSS_CLIBasicCfg

    System_printf ("Debug: Basic configuration completed. Start the sensor...\n"); ??

    I'm not sure if Task stack size is the issue of additional system_print call, you can either remove any existing print in the function or increase stack size of CLI_task which calls these CLI command handler functions.

    Regards,

    Jitendra

  • Hello Jitendra,

    Thanks for kind response , System_printf ("Debug: Basic configuration completed. Start the sensor...\n"); is printing .As per  my knowledge this is not because of stack size of CLI_task since i am not getting any run-time error,  if this is because of stack size then please let me know how i can increase the stack size. Also clear me how any number of  System_printf is working in mss_srr_cli.c . Please provide me needful assistance.

    Warm Regards,

    Pritam

  • Hi Pritam,

    CLI library creates a task within it where you need to change the stack size of this specific task.

    ti\utils\cli\src\cli.c

    Task_Params_init(&taskParams);
    taskParams.priority = gCLI.cfg.taskPriority;
    taskParams.stackSize = 4*1024;
    gCLI.cliTaskHandle = Task_create(CLI_task, &taskParams, NULL);

    Regards,

    Jitendra

  • Hello Jitendra,

    Thanks for your answer also happy new year, i am trying to implement the same and get back to you about final result.

    Best Regards,

    Pritam