After a two day fight with the RTDX a have to give up. I am working with the DM642 and Code Composer Studio 3.3.
At the beginning started working with the TRDX examples and the Data Transfer worked pretty well. Here there is not the DSP/BIOS and the target is initialized throug the TARGET_INITIALIZE().
Then I tried to use the RTDX on my project wich exploits the DSP/BIOS. I enabled the RTDX on the BIOS and I ported the same code I tested on the examples.
The problem is that nothing is written on the output chan and the "RTDX_writing" pointer which becomes not NULL after the RTDX_write(...) is never set to 0 again.
if (!RTDX_write(&ochan, &m_acEcho_MIC_buffer[0], sizeof(short)))
{
fprintf(stderr, "\nError: RTDX_write() failed!\n");
}
k++;
while ( RTDX_writing != NULL )
{
// NEVER EXIT FROM HERE
}
fprintf(stdout, "Message %i was sent to the host\n", k);
My concern is that there is something wrong with the interrupt configuration. By the way, I can see the two reserved HWI required by the RTDX defined in the BIOS.
I am uncertain about how to configure the RTDX interrupt mask in the RTDX window of the BIOS settings.
Any suggestion will be greatly appreciaed.