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.

CC2652R: UART prints for debugging in TI-RTOS Thread examples (empty_mtd or cli_mtd)

Part Number: CC2652R

Hello guys,

To create our own Thread based application (the device is a sleeping end), should I start with empty-mtd or cli-mtd? How to setup the typical display_printf() over UART?

Firstly, I have confirmed my Thread network with the cli-ftd project and able to ping external servers though my OTBR.

Then, assuming empty-mtd is the starting point for our app, I spent a few hours but I couldn’t figure out how to UART printf(). Empty-mtd has a custom TI CUI menu; cli-mtd has the Thread CLI UART interface.  

Additionally, With the empty-mtd project:

  1. I followed the instructions below to set ENABLE_ALL_LOGS_TO_UART to 1: https://dev.ti.com/tirex/content/simplelink_cc13x2_26x2_sdk_5_20_00_52/docs/thread/html/thread-guide/debugging-index.html#controlling-log-output
  2. Then added the following line to empty.c:
    1. DISPUTILS_SERIALPRINTF(0, 0, "Empty Example initialized! Have fun!");
    2. otPlatLog(OT_LOG_LEVEL_DEBG, OT_LOG_REGION_API,"Hello world!");
  3. Build and run, but I don’t see any output other than the default CUI menu. 

Appreciate any suggestions. 

Will