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.

problem regarding with ROM_UARTConfigSetExpClk() and UARTStdioConfig(0, 115200, 16000000)

if i called this function for uart1(portb b0----rx and b1 .....tx)

ROM_UARTConfigSetExpClk(UART1_BASE, ROM_SysCtlClockGet(), 115200,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));

y the data is not displayed on to the terminal.......if i used the function like UARTStdioConfig(0, 115200, 16000000); then it throws an error in the uart echo exapmle.....but i thought ROM_UARTConfigSetExpClk() function was internally called the

UARTStdioConfig(0, 115200, 16000000) function; ......then what is the problem to display on the terminal...please help about this issue.....thank u

and if i used for portA then it is displayed on to the terminal,what i send. In the uart echo example program

  • surendra malampati said:
    y the data is not displayed on to the terminal.......if i used the function like UARTStdioConfig(0, 115200, 16000000); then it throws an error in the uart echo exapmle

    Most probably because you did not add uartstdio.c at your project library.

    - kel

  • but when we call the 

    ROM_UARTConfigSetExpClk(UART1_BASE, ROM_SysCtlClockGet(), 115200,
    (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
    UART_CONFIG_PAR_NONE)); function it has internally configured the  UARTStdioConfig(0, 115200, 16000000); function...

  • surendra malampati said:
    ROM_UARTConfigSetExpClk(UART1_BASE, ROM_SysCtlClockGet(), 115200,
    (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
    UART_CONFIG_PAR_NONE)); function it has internally configured the  UARTStdioConfig(0, 115200, 16000000); function...

    No, UARTConfigSetExpClk does not internally configure UARTStdioConfig().

    Do this, compare the project files of hello example program and uart_echo example program. Both, example configures uart.

    uart_echo calls ROM_UARTConfigSetExpClk(), C API which can be found at "\\driverlib\uart.c" and part of the library driverlib.

    hello calls UARTStdioConfig(), C API which can be found at "\\utils\uartstdio.c"

    Review how both C API's work to get more understanding.

    - kel

  • Thank u markel.......I am not getting the data on uart1(port B)in the uart echo example.........y? Thank u

  • surendra malampati said:
    I am not getting the data on uart1(port B)in the uart echo example.........y? Thank u

    Because, your ICDI is connected to UART0.

    To communicate to your PC using UART1, you need to use a RS232 Transceiver.

    - kel