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:
- 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
- Then added the following line to empty.c:
- DISPUTILS_SERIALPRINTF(0, 0, "Empty Example initialized! Have fun!");
- otPlatLog(OT_LOG_LEVEL_DEBG, OT_LOG_REGION_API,"Hello world!");
- Build and run, but I don’t see any output other than the default CUI menu.
Appreciate any suggestions.
Will