Forums

C6713 HPI loader problem

Started by jyzh...@sina.com December 14, 2007
Dear all;
I am working on a C6713 based board, the host is C5402 and the DSP is C6713.
Connecting the C6713 to a Host processor and bootloader program are very like to
"Implementing the C6xxx HPI Boot Process"(spra512).
if I load following program from HPI:
// timer1 set; The output wave can been seen in pin13 "pin_name = tout1".
#define CTL1 (unsigned int*) 0x01980000
#define PRD1 (unsigned int*) 0x01980004
#define CNT1 (unsigned int*) 0x01980008
main()
{
*CTL1= 0x311;
*PRD1=0xffff;
*CTL1= 0x3d1;
while(1);
}
the program runs fine.

But if i load following program from HPI:
// timer set program provided by 2003 Texas Instruments.
// in c:\CCStudio_v3.1\examples\dsk6713\csl\timer
void main() {

/* Initialize the chip support library, must when using CSL */
CSL_init();

/* Open TIMER1 device, and reset them to power-on default state */
hTimer1 = TIMER_open(TIMER_DEV1, TIMER_OPEN_RESET);

/* Configure the timer devices */
TIMER_configArgs(hTimer1,
TimerControl, /* use predefined control value */
0x00100000, /* set period */
0x00000000 /* start count value at zero */
);

/* Start the timers */
TIMER_start(hTimer1);

while(1); /* waiting for interrupt*/
}

Nothing happened !

if I connect the JTAG and then start above program from the JTAG to C6713 (in Code Composer), all is good!

Why? Many thanks!
jiangyuzhong.