Post Go back to editing

UART

Thread Summary

The user is experiencing issues with UART communication in DMA mode on the ADSP-21835-SOM board, while core mode works correctly. The support engineer is simulating the issue and will provide further assistance. The user confirmed the hardware is functioning normally and provided test steps, terminal configurations, and register views for both modes.
AI Generated Content
Category: Software
Product Number: ADSP-21835
Software Version: CCES3.0.2

Hi,

I am using 21835-SOM board.I found that the serial port cannot communicate properly.

Please help me check the code.

Regards,UARTDMAMode.rar

Bingo

Parents Reply Children
  • Hi Bingo,

    We have tested the UART DMA example available in the BSP and it works as expected.

    Could you confirm whether you are able to run the core read/write example without using the EV-SOMCRR-EZKIT and EV-SOMCRR-BRKOUT boards? Also, please let us know which core read/write example you are testing, along with the steps and the hardware connections you followed.

    Regards,
    Nandini C

  • Hi,

    Here is my code,please try it.The picture is my hardware connection.There are 2 mode in the code:core read and DMA read.while in core read mode,DSP can echo back to computer what have received,but DMA read mode can not.

     UART.rar

    Regards,

    Bingo

  • Hi Bingo,

    Please provide more information on below points to assist you better on this.
    1) Please provide the steps you have followed to test the example.
    2) Can you share the screenshot of the output that is echoed back to the computer.
    3) Can you share the screenshots of the register browser window showing the UART control and status register configuration for both core mode and DMA mode.
    4) Please let us know which UART terminal(eg. Termite, Putty, Teraterm) you are using, along with its configuration.

    Regards,
    Nandini C

  • Hi,

    Could you please tye my code,You can use any UART terminal.

    regards,

    Bingo

  • Hi Bingo,
    We included the "SoftConfig" file for the ADSP-SC835 and tested your code on the ADSP-SC835 SOM board using Tera Term. However, we did not receive any output in both core mode and DMA mode. Could you please provide more details regarding the queries we mentioned in our previous email to assist you better.
    Regards,
    Nandini C
  • Hi,

    Test steps:

    1.run the example code first

    2.send 8 bytes by UART terminal

    UART terminal config:

    baudrate:57600

    stop bit:1

    data bit:8

    parity:none

    I can not find UART registers:

    Core mode screenshot of UART terminal:

    DMA mode screenshot of UART terminal:

    Regards,

    Bingo

  • Hi Bingo,

    Thank you for sharing the information.

    Please find the UART register in the Peripherals view, which displays each peripheral and its memory-mapped registers. Please follow the below step to find the Peripherals view.
    Window -> Show View -> Other -> Debug -> Peripherals

    We tested the code with the configurations you provided, but no output was received. Could you please try using the terminal like Tera Term, putty, etc and let us know if you get the same result.

    Please note that there are no data lines available on the P1 connector. The P1 connector is used solely to power the ADSP-21835 SOM board. Please find the below schematic for reference.



    We understand that you do not have the EV-SOMCRR-EZKIT and EV-SOMCRR-BRKOUT boards along with the ADSP-21835-SOM board. Please confirm.

                

    Regards,
    Nandini C

  • Hi,

    1.I do not have the EV-SOMCRR-EZKIT and EV-SOMCRR-BRKOUT.

    2.there is a USB to UART chip on ADSP-21835 SOM board,please check you USB cable.

    3.echo received by putty,uart in core mode

    4. register view of core mode

    5.register view of DMA mode

    6.no echo in DMA mode,but receiving Interrupt happened.

  • Hi Bingo,

    We are checking this internally and will get back to you as soon as possible.

    Regards,
    Nandini C

  • Hi,

    May I ask if there has been any progress?

    Regards,

    Bingo