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,

    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

  • Hi,

    Apologies for the delay caused.

    We were able to simulate your issue on our end; we are checking and will get back to you as soon as possible.

    Regards,
    Nandini C

  • Hi,

    Please refer the attached example demonstrates the usage of baud rate detection automatically using “UART DMA” mode to scan the keyboard alphabets and send them onto a Terminal emulator such as TeraTerm.UART_DMA_Autobaud_SC835_SHARCFX_Core1.zip

    Please open a serial terminal application (for example PuTTY or TeraTerm) and configure a serial connection to the COM port with the settings as shown below:

    Bits Per second = Set any baud rate, range between 110 to 115200 bps
    Data bits = 8
    Parity = None
    Stop bits = 1
    Flow Control = None
    And follow the below steps:

    1. Open a terminal emulating tool such as tera term on PC and set the baud rate at which communication needs to be established.
    2. Run the example and enter "@" in the terminal emulator window so that the example can detect the baud rate and it will be displayed on the console window as "Detected Baudrate is xx"
    3. Any key pressed through keyboard will be displayed on the console window and to exit from this program press "Enter".

    Please run this example and let us know if any assistance is required.

    Regards,
    Nandini C

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.