I'm migrating from DSP/BIOS to SYS/BIOS (CCSv5.2.2, BIOS 6.33.05.46, XDC Tools 3.23.03.53) and am seeing the following error:
Description Resource Path Location Type
#20 identifier "diags_USER1" is undefined main.cpp /Vibration Monitor line 826 C/C++ Problem
In my main.cpp, I have the following include files:
#include <xdc/runtime/System.h>
#include <xdc/runtime/Log.h>
#include <xdc/runtime/Diags.h>
#include <ti/sysbios/BIOS.h>
#include <xdc/cfg/global.h>
In my .cfg file I have the following defined:
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Log = xdc.useModule('xdc.runtime.Log');
/* create trace logger */
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var trace = LoggerBuf.create();
/* Set trace to be the default logger for the application. */
var Main = xdc.useModule('xdc.runtime.Main');
Main.common$.logger = trace;
/* Enable diagnostics for USER1 events for our program. Logging in the C
* Code will be done using USER1 events. Disabling this would disable all of
* the logging done in mailbox.c */
Main.common$.diags_USER1 = Diags.RUNTIME_ON;
BIOS.common$.diags_USER1 = Diags.RUNTIME_ON;
(NOTE: Although I posted a problem similar to this (Log_printx() in SYS/BIOS), this is not the same project. This is a brand new project but similar error.) Little help. Thanks.
.cfg file attached (6014.VibrationMonitor.cfg)