Texas Instruments

Table of Contents

Example Summary

Example that uses the UART driver to echo back to the console. It also demonstrates System Analyzer usage via a stop-mode logger.

Peripherals Exercised

Resources & Jumper Settings

Please refer to the development board’s specific Settings and Resources section in the Getting Started Guide. For convenience, a short summary is also shown below.

Development board Notes
CC2650DK
CC2650STE-BLE
CC3200
DK-TM4C129X
EK-TM4C123GXL
EK-TM4C1294XL
EK-TM4C129EXL
MSP-EXP430F5529LP
MSP-EXP430FR5969
MSP-EXP430FR6989
MSP-EXP430FR5994
MSP-EXP432P401R
TMDXDOCK28M36
TMDXDOCKH52C1

Fields left blank have no specific settings for this example.

Example Usage

The connection should have the following settings

    Baud-rate:    9600
    Data bits:       8
    Stop bits:       1
    Parity:       None
    Flow Control: None

The Live Session should have records like the following

   - "LS_cpuLoad: 0%"
   - "Wrote character 0xa"

Application Design Details

Most of the other examples do not use instrumented libraries to improve performance and minimize footprint.

The CC3200 and TivaC platforms have DMA support for the UART driver. For these platforms, the uartecho example can be built with either the UART driver with DMA support, or the non-DMA UART driver. The default configuration for this example is to use the non-DMA UART driver. Since only one character at a time is sent to the UART, this example is not an efficient use of the DMA, but it still serves to illustrate use of the UART DMA driver. To use the DMA version of the UART driver, build this example with the compile flag:

--define=TI_DRIVERS_UART_DMA=1

The .c file includes either the UART driver with DMA support or the non-DMA UART driver, based on this compile flag.

For IAR users using any SensorTag(STK) Board, the XDS110 debugger must be selected with the 4-wire JTAG connection within your projects’ debugger configuration.

References