uart problem of 21569

Hi,

I tested the uart of 21569 in DMA mode,I found a problem:for computer terminal,received bytes is less than sended.

computer terminal software setting is:timed transmission,period is 10ms,6 bytes a time.

I attached my code here,the code function is send 6 bytes to computer terminal software while received 6 bytes.

Best regards,

Bin

uart-21569.rar

Parents Reply
  • 0
    •  Analog Employees 
    on Apr 9, 2021 2:25 PM in reply to goDSP

    Hi Bin,

    Apologies for delayed response.

    I had taken a look at your code. Looks like you are using STOP mode for DMA Write and Autobuffer mode for Read. Is there any reason for doing so? Regarding your issue, you mentioned 6 bytes are sent to DSP and then DSP sends back 6bytes. How many bytes are exactly received from DSP?

    BTW, did you get a chance to look into the the UART echo back code available in the Board Support package.
    <Installation path>\Analog Devices\ADSP-2156x_EZ-KIT-Rel1.0.1\ADSP-2156x_EZ-KIT\Examples\Power_On_Self_Test\common\source\uart_test.c

    The BSP can be downloaded from the below link.
    download.analog.com/.../ADI_ADSP-2156x_EZ-KIT-Rel1.0.1.exe

    Please use this example code and let me know how you get through this.

    Regards,
    Anand Selvaraj.

Children