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.

Changing UART ports on the TI-RTOS Uartconsole Example

Other Parts Discussed in Thread: TM4C123GH6PM, TM4C1294NCPDT

I'm making an application for my TM4C1294NCP Launchpad that should behave rather similarly to the TI-RTOS UartConsole example, but I need to change the UART used from 0 to 6. I started by changing a handful of values around, including the Base address and Pins used for communication. I'm having a few hiccups with what I felt should be an easy process. What Values should I change to alter the console from UART0 to UART6?

  • Hello Adam

    The UART0 is the dedicated COM port on the LaunchPad. To be able to use another UART, you would first need to remove the 0Ohms resistors for UART0TX and UART0RX marked R6 and R7. The connect the UART6 RX and TX to the header pin next to TXD and RXD on the launchpad

    Regards
    Amit
  • Hello Amit!

    Thanks for the quick reply. I found I was able to transfer information character by character to UART6 with a method I created yesterday, (and a COM chip) so if I absolutely must I can return to this method, but it is very inefficient. What makes the TXD and RXD necessary in this case?

    Regards,
    Adam
  • Hello Adam,

    The TXD and RXD are connected from the ICDI MCU (TM4C123GH6PM) to the TM4C1294NCPDT UART0 RXD and TXD pin. The TXD from the ICDI to the RXD of TM4C1294 is a driven line (while the other way around can be controlled by reconfiguring the GPIO as an input). The only method for releasing the line is to disconnect by removing the 0Ohm resistor.

    Once this is done then the uartstdio.c/.h can be modified to add UART6 and all UART functions as shown in examples can be reused.

    Regards
    Amit
  • Hello Amit,

    If I were to remove the resistors and connect the UART6 header pins as you suggested, the COM port would still be using the USB cable, would it not? If at all possible I would like to use the COM port I have been able to connect to via BT thanks to my chip.

    Regards,
    Adam
  • Hello Adam

    Yes, it would be using the USB cable. In the case you want to use the COM port via the BT, but still have the same function feel like UART0 then uartstdio.c and .h need to be modified for mapping all APIs to UART6. This would require changing Port config, base address, etc.

    Regards
    Amit
  • Hi Amit.

    Are you refering to the UARTUtils.C and .h files or a lower level UARTStdio.c/.h file?

    Regards,
    Adam
  • Hello Adam

    I am referring to uartstdio.c/.h for TM4C129x in TI RTOS drivers. You would need to re build the drivers

    Regards
    Amit