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.

TMS320F28386D: spi_ex5_loopback_dma example does not work well

Part Number: TMS320F28386D
Other Parts Discussed in Thread: C2000WARE, , SYSCONFIG

Hi

I am testing the example spi_ex5_loopback_dma from the C2000Ware - 4.03.00.00 imported from the Resource Explorer on my own board with a DSP TMS320f28386D debugging with a XDS110. The example uses the SysConfig Tool.

The problem I am facing is that the program stops here because the arrays are not equal

The last value written seems to be 103. 

When I check the SysConfig file I see that the "Number of words to be transferred" is calculated as 105. which is close to what the debug session shows.

Is there any bug in the sysconfig or in my system? Did the example work in your bench? Should I modify any config. Thank you in advance.

Answer

While finishing this post, I realized the verification is done in the TX and not in the RX interrupt... I just moved the verification loop to the RX interrupt and it finished correctly. It should be fixed in next versions of C2000Ware.

Question remaining: Is the calculated "Number of Words to be transferred" also wrong or can you explain me the meaning? thank you in advance.