Other Parts Discussed in Thread: INA226
Tool/software: TI C/C++ Compiler
Hello TI team,
Intialliy we are running usecase from HLOS and because of certain requirements we are starting usecase from RTOS, After moving to RTOS usecase (M4 IPL Loading)
we are unable to see the Statics logs.
Current LOGS
[HOST] [IPU1-0] 3675.543189 s: Statistics Collector,
[HOST] [IPU1-0] 3675.543341 s:
[HOST] [IPU1-0] 3675.543433 s: STATISTIC Avg Data Peak Data
[HOST] [IPU1-0] 3675.543646 s: COLLECTOR MB/s MB/s
[HOST] [IPU1-0] 3675.543982 s: --------------------------------------------------
[HOST] [IPU1-0] 3675.640669 s:
In the function "Utils_statCollectorPrintCount" , value pCfg->num_uc is 0.
/**************************CODE SNIPET ******************************/
Void Utils_statCollectorPrintCount(void)
{
Int32 uc_idx = 0;
Int32 num_counters = 0;
UInt32 cfg_idx;
Vps_printf(" \r\n");
Vps_printf(" Statistics Collector,\r\n");
Vps_printf(" \r\n");
Vps_printf(" STATISTIC Avg Data Peak Data \r\n");
Vps_printf(" COLLECTOR MB/s MB/s \r\n");
Vps_printf(" -------------------------------------------------- \r\n");
for(cfg_idx=0U; cfg_idx<MAX_SDRAM_CFGS; cfg_idx++)
{
Utils_StatCollSdramCfg *pCfg;
pCfg = &gUtils_statCollCtrl.sdramCfg[cfg_idx];
Vps_printf("pCfg->num_uc %d \r\n", pCfg->num_uc);
for(uc_idx = 0; uc_idx < pCfg->num_uc; uc_idx++) // RAGHU: THIS LOOP ITS NOT ENTERING BECAUSE num_uc is zero */
{
num_counters = pCfg->data[uc_idx].numCounters;
Vps_printf("NumCounter: %d, %s\r\n", num_counters , pCfg->cfg[uc_idx].descr);
switch(num_counters)
{
/*
* MISRA.PTR.ARITH
* MISRAC_2004_Rule_17.1 MISRAC_2004_Rule_17.4:
* Pointer is used in arithmetic or array index expression
* KW State: Defer -> Waiver -> Case by case
*/
case 1 :
Utils_statCollectorPrintThroughPut(
Regards,
Raghu