This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6678 SRIO SWRITE problem

DSP: C6678
What do I need to configure to send data using SWRITE to an FPGA on
the same board from the DSP?

Receiving data from the FPGA is working so the device is alive and the
bit rate is correct.

To send data I first disable block 1 using:

CSL_SRIO_DisableBlock (hSrio, 1);

Then I set LSU registers 0 - 4.

CSL_SRIO_SetLSUReg0 (hSrio, 0, 0);
CSL_SRIO_SetLSUReg1 (hSrio, 0, dest_address);
CSL_SRIO_SetLSUReg2 (hSrio, 0, &data_buffer_al);
CSL_SRIO_SetLSUReg3 (hSrio, 0, byte_count, 0);
CSL_SRIO_SetLSUReg4 (hSrio, 0, dest_id, 0, id_size_8, 0, 2, 0, 0, 0);

Enable block 1

CSL_SRIO_EnableBlock (hSrio, 1);

and finally I set LSU reg 5:
CSL_SRIO_SetLSUReg5 (hSrio, 0, 0, 6, 0, 0);

We can't see any signs of activity at the FPGA end after this.
What am I missing and how can I find out what's preventing the transmission to
start?

Library used is: pdk_C6678_1_1_2_5

/Stefan Kvist

 

  • Why are you disabling the LSU before trying to write the registers?  That is most likely your issue.  Have you looked at using the LLD and SRIO examples that come with the MCSDK?   C:\ti\pdk_C6678_1_1_2_5\packages\ti\drv\srio\example

    Travis