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.

RTOS/EK-TM4C123GXL: Enabling custom UART in TM4C123GXL

Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: CC3100, ENERGIA

Tool/software: TI-RTOS

"Hi ,

I need to use a HM-10 Module  & CC3100 booster pack  with my TM4C123GXL board in RTOS. So the available pins are  PC_6 as Rx   and PD_7 as Tx for connecting the Bluetooth module.   I am unable to establish the UART communication to Bluetooth. I have enabled that in normal CCS. But how to do that in RTOS?

Please help."

  • What do you mean by "I have enabled that in normal CCS. "? Do you mean with using driverlib in TivaWare?
  • Ya using driverlibs and also setting up the clocks registers and all.
  • Hi Vishnuprasad,

    Maybe you can start with one of the BIOS examples and add your driverlib calls to it.  Is everything working in the non-BIOS environment?

    Best regards,

    Janet

  • Thanks for the reply,

    With the imported energia code the system worked pretty fine.

    Since enegia has better libaries and simple examples it was quite a simple task  to edit that all.

    But in the bios environment I gone through the UART examples, but that all only deals with UART 0 only.

    I only started working with CCS just 2months ago.

    Without bios(ie. Non-rtos) I worked on some UARTS and. It all was fine. But when it come to  RTOS  I am not clear about where to start actually.  

    I didnt get any right way to work on UARTs in the .cfg file.

  • Hi Vishnuprasad,

    In TIRTOS, the peripherals are configured in a <board>.c file, e.g., in EK_TM4C123GXL.c.  If you import any of the TIRTOS examples, they will have this board file in the project.  You can add an entry to the uartTivaHWAttrs[] and UART_config[] tables.  The pins can be configured in EK_TM4C123GXL_initUART() (also in the board file).

    You can also add the UART to the UARTName enum in the EK_TM4C123GXL.h file, and a "Board_UART1" define to Board.h.  I recommend looking at another peripheral in the <board> files that has multiple entries, such as SPI or PWM, to follow as an example.

    Best regards,

    Janet

  • Thanks Janet,
    I will check that. .... Is there any need to do any thing with the .cfg file for enabling the UART 1.. ?
  • Hi Vishnuprasad,

    You should not need to make modifications to the .cfg file to configure or enable the UART.

    Best regards,

    Janet

  • Thanks Janet,
    I will check that.