Hi,
how can I debug PRD_start ?
I use code composer studio v.4.2.3.
I did like this.
target -> clock->check enable,view -> setup "CPU execute cycles"
I enabled realtime mode.
this is my PRD setting in tcf file.
--------------------------------------------------------------------
bios.PRD.create("prd1");
bios.PRD.instance("prd1").fxn = prog.extern("prd1fxn");
bios.PRD.instance("prd1").order = 2;
bios.PRD.instance("prd1").mode = "continuous";
--------------------------------------------------------
my source code is
-------------------------------------------------------
#include <log.h>
#include <tsk.h>
#include <prd.h>
#include <sem.h>
#include <sys.h>
#include <mem.h>
#include <stdio.h>
#include <stdlib.h>
// driver include file
#include <upp_md.h>
// application include file
#include "s6_omap_intercomms_dspappcfg.h"
#include "s6_omap_intercomms_sys.h"
#include "s6_omap_intercomms_console.h"
#include "s6_omap_intercomms_i2c.h"
#include "s6_omap_intercomms_spi.h"
#include "s6_omap_intercomms_upp.h"
#include "s6_omap_intercomms_emif.h"
#include "fpga_config.h"
extern PRD_Obj prd1;
extern far LOG_Obj trace;
void prd1fxn()
{
int data;
data = PRD_getticks();
LOG_printf(&trace, "prd1 ticks = %d",data );
}
void main()
{
PRD_start(&prd1);
}
--------------------------------------------------------------
when I ran this program, i can't see any printf log.
what's wrong?
PLZ.. help me!!!