DSPRelated.com
Forums

some question About Mcbsp

Started by Randy Hoo April 13, 2008
Hi,

I am dong a project about Mcbsp. When I use the 5510 ccs simulator to
debug my programme, I met some problems.

1, When I use the bios/dsp config to set the parameter of mcbsp0, the
generated function CSL_cfgInit() can not work appropriately. In fact
it can be complied with no erros. But it is reported that "Can't Run
Target CPU: WARNING: PAGE BOUNDARY CROSSING DETECTED AT PROGRAM
COUNTER 0x100ef
" when the traget is running. After that the programme is then halted.
How can I deal with it?

2, After I modified the value of appropriate register, I tried to use
macro MCBSP_RGETH to display such value in the output window. However,
whateve value I set the register, the output value is always 32. My
code can be illustrated as below.

Unit16 j;
j=MCBSP_RGETH(hMcbsp0,PCR);
while (1) printf("%d\n",j);

With the help of relavent tool, I can observe the mcbsp registers
directly. I found out that PCR value is different from the value of
variabale 'j'.

3, For some reason, I want to use a simple method to generate wanted
delay. TIMER0 interrupt is withdrawn because it is too complex. So I
am trying to find a length of for loop to generate such delay in
simulation before the codes are implemented into real board. However,
I failed to find such a time tool within CCS GUI. Could anyone tell me
is there such a too in CCS?

Thanks a lot in advance for all possible replies.

Regards,

Shuoqiu Hu