Hi
I have legacy DSP/BIOS code for logging that I want to compile with SYS/BIOS 6.
I would like to keep using the LOG_printf function as is (undefined number of variables and a specific log since i have a few in my application)
For example
int x1 = 4;
int x1 = 3;
LOG_printf(&LOG_Struct, "x1 %d y1 %d", x1,y1);
In the cgf I have the following
var loggerBuf1Params = new LoggerBuf.Params();
loggerBuf1Params.instance.name = "LOG_Trace";
loggerBuf1Params.bufSection = "sdram_scratch_mem";
loggerBuf1Params.numEntries = 16;
Program.global.LOG_Trace = LoggerBuf.create(loggerBuf1Params);
Defaults.common$.logger = Program.global.LOG_Trace;
Main.common$.diags_INFO = Diags.ALWAYS_ON;
When I run it, I see in the LoggerBuf section in the ROV the following:
Received exception read failed at address: 0x8e01fe5c, length: 36
This read is at an INVALID address according to the application's section map.
The application is likely either uninitialized or corrupt.
But when I put in the code: Log_info2( "x1 %d y1 %d", x1,y1);
It shows the correct string in the records.
Attached is an example project.
My configuration is:
CCS - Version: 6.0.1.00040
Compiler version 7.4.8
Varient : Generic C66xx Device
XDC: 3.30.3.47_core
Keystone2 PDK - 3.0.4.18
NDK 2.22.2.16
SYS/BIOS - 6.40.2.27
Thanks