In CCStudio_v3.1\examples\dsk5510\rtdx\\t_write, it can send data from target DSP to host client Matlab using the following program. It does not use DSP/BIOS configuration, but writing DSK5510.cmd and intvecs.asm.
unsigned int i;
/* Target initialization for RTDX */
TARGET_INITIALIZE();
/* Enable the output channel, "ochan" */
RTDX_enableOutput(&ochan);
for ( i = 0; i < 100; i++ ) {
/* Send the data to the host */
if ( !RTDX_write( &ochan, &i, sizeof(i) ) ) {
fprintf(stderr,
"\nError: RTDX_write() failed!\n");
abort();
}
/* Wait for data transfer */
while ( RTDX_writing != NULL ) {
#if RTDX_POLLING_IMPLEMENTATION
/* Call Poll to do data transfer */
RTDX_Poll();
#endif
}
}
I want to send ADC results from DSP to host client using above RTDX write problem. But I need timer0 interrupt program to deal with the control of sampling, so I add the sampling program in the timer interrupt example program ----CCStudio_v3.1\examples\evm5510\csl\timer\timer1_useBios, which uses DSP/BIOS configuration. I add above RTDX write program(here I do not use the real time sampling result, only given numbers as above program ), There is not compile and build error, but the data can't be sent to host client Matlab .
I want to know how to reconfigure this DSP/BIOS configuration, e.g., memory allocation, RTDX interrupt mask, ........, so I can still use the above RTDX write program to send the data from DSP to host???