Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to send data from host to target dsp evm 6701 using RTDX

Status
Not open for further replies.

Anish Bekal

Newbie level 1
Joined
Mar 31, 2004
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
7
rtdx_writing

I am trying to send 4Kb data form the host(Matlab) to the target dsp evm 6701. the RTDX is working only when there is only one read channel, but when there is both read and write channels the host is capable of reading data but the data sent by the host is not recived by the target.
please help me out
 

rtdx array pass

I have another question on DSK 6416 about sending a array to target from command line of matlab.
I enable the output channel, when DSP is runing. After some seconds, the
DSP halt , an error saying terminate the application.Did you meet same problem before?

the code below:#include "target.h" /* TARGET_INITIALIZE */
#include "rtdxcfg.h"

#define MAX 10

short recvd[MAX];

RTDX_CreateInputChannel(ichan); /* Channel to receive data from */
RTDX_CreateOutputChannel(ochan); /* Channel to use to write data */

void main()
{
int i,j;

TARGET_INITIALIZE(); /* target specific RTDX init */
for(;;)
{
while ( !RTDX_isInputEnabled(&ichan) )
{/* wait for channel enable from MATLAB */}
RTDX_read( &ichan, recvd, sizeof(recvd) );
// puts("\n\n Read Completed ");

for (j=1; j<=20; j++) {
for (i=0; i<MAX; i++) {
recvd +=1;
}
while ( !RTDX_isOutputEnabled(&ochan) )
{ /* wait for channel enable from MATLAB */ }
RTDX_write( &ochan, recvd, sizeof(recvd) );
while ( RTDX_writing != NULL )
{ /* wait for data xfer INTERRUPT DRIVEN for C6000 */ }
}

while ( RTDX_isInputEnabled(&ichan) || RTDX_isOutputEnabled(&ochan) )
{ /* wait for channel disable from MATLAB */ }
// puts("\n\n Test Completed ");
// while (1) {}
}
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top