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.

AWR6843AOPEVM: How to properly turn on and see the content of DebugP_XX in IDE ?

Other Parts Discussed in Thread: MMWAVEICBOOST, AWR6843AOP, SYSBIOS, MMWAVE-SDK

Tool/software:

Hi TI experts : 

Good afternoon~ The question is as title.My IDE settings are as below : 

IDE version : CCS 20.0.1 

XDCtools : 3.50.8.24_core

SYS/BIOS : 6.73.0.01

mmWave SDK : 3.6.0.00-LTS

Project : out_of_box_6843_aop

Board : MMWAVEICBOOST + AWR6843AOP

Operation mode : debug

I have put  "#define DebugP_LOG_ENABLED 1" at the top of main.c

mmw.cfg is as below :

/*
 *  Copyright 2018 by Texas Instruments Incorporated.
 *
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *
 */
environment['xdc.cfg.check.fatal'] = 'false';

/********************************************************************
 ************************** BIOS Modules ****************************
 ********************************************************************/
var Memory    = xdc.useModule('xdc.runtime.Memory');
var BIOS      = xdc.useModule('ti.sysbios.BIOS');
var HeapMem   = xdc.useModule('ti.sysbios.heaps.HeapMem');
var HeapBuf   = xdc.useModule('ti.sysbios.heaps.HeapBuf');
var Task      = xdc.useModule('ti.sysbios.knl.Task');
var Idle      = xdc.useModule('ti.sysbios.knl.Idle');
var SEM       = xdc.useModule('ti.sysbios.knl.Semaphore');
var Event     = xdc.useModule('ti.sysbios.knl.Event');
var Hwi       = xdc.useModule('ti.sysbios.family.arm.v7r.vim.Hwi');
var System    = xdc.useModule('xdc.runtime.System');
var SysStd    = xdc.useModule('xdc.runtime.SysStd');
var clock     = xdc.useModule('ti.sysbios.knl.Clock');
var Pmu       = xdc.useModule('ti.sysbios.family.arm.v7a.Pmu');
var Load      = xdc.useModule('ti.sysbios.utils.Load');

/* make this if (0) if you don't want any messages on CCS console say because of
   slow printing. They can be viewed in CCS ROV viewer in SysMin module */
if (1)
    System.SupportProxy = SysStd;
else
{
    var SysMin = xdc.useModule('xdc.runtime.SysMin');
    SysMin.bufSize = 4096;
    System.SupportProxy = SysMin;
}

/* FIQ Stack Usage: */
Hwi.fiqStackSize                = 2048;
Hwi.fiqStackSection            = ".myFiqStack"
Program.sectMap[".myFiqStack"] = "DATA_RAM";

/* Default Heap Creation: Local L2 memory */
var heapMemParams           = new HeapMem.Params();
heapMemParams.size          = 64*1024;
heapMemParams.sectionName   = "systemHeap";
Program.global.heap0        = HeapMem.create(heapMemParams);
Memory.defaultHeapInstance  = Program.global.heap0;

/* Enable BIOS Task Scheduler */
BIOS.taskEnabled	= true;

/* Reduce the size of BIOS */
BIOS.swiEnabled        = false; /* We don't use SWIs */
BIOS.libType           = BIOS.LibType_Custom;
Program.stack          = 1200; /* for isr context */
Task.idleTaskStackSize = 800;
var Text               = xdc.useModule('xdc.runtime.Text');
Text.isLoaded          = false;

/* do not call update for load - Application will call it at inter-frame boundary */
Load.updateInIdle = false; 

/* Install idle function to sleep the R4F (using WFI instruction). Note above
   Load.updateInIdle is false which allows to sleep the R4F in idle. 
   Also, no other book-keeping etc functions should be installed in the idle thread */
Idle.addFunc('&MmwDemo_sleep');

Program.sectMap[".vecs"]	= "VECTORS";

/* Make sure libraries are built with 32-bit enum types to be compatible with DSP enum types*/
BIOS.includeXdcRuntime  = true; 
BIOS.libType            = BIOS.LibType_Custom;
BIOS.customCCOpts      += " --enum_type=int ";

/********************************************************************
 * Enabling DebugP Log Support
 ********************************************************************/
var Log         = xdc.useModule('xdc.runtime.Log');
var Main        = xdc.useModule('xdc.runtime.Main');
var Diags       = xdc.useModule('xdc.runtime.Diags');
var LoggerBuf   = xdc.useModule('xdc.runtime.LoggerBuf');

/* Configure the Logger Buffer: */
var loggerBufParams             = new LoggerBuf.Params();
loggerBufParams.bufType         = LoggerBuf.BufType_CIRCULAR;
loggerBufParams.exitFlush       = false;
loggerBufParams.instance.name   = "_logInfo";
loggerBufParams.numEntries      = 200;

/* Create the Logger and attach this to the application */
MyAppLogger                     = LoggerBuf.create(loggerBufParams);
Main.common$.logger             = MyAppLogger;
Main.common$.diags_USER1        = Diags.RUNTIME_ON;
Task.common$.diags_USER1        = Diags.RUNTIME_ON;

I set up a breakpoint below the DebugP_log2 inside objectdetection.c and turn on the "RTOS Objects" in console

but see nothing (I expected to see "ObjDet DPC: Frame Start, frameIndx = %d, subFrameIndx = %d\n"objDetObj->stats.frameStartIntCounter, objDetObj->subFrameIndx)

Is there anything else I have to take care in order see the content of DebugP_log2 ?