Other Parts Discussed in Thread: SYSCONFIG, CC2640, LAUNCHXL-CC26X2R1
Hi,
I am trying to use UartLog instead of display_printf in simple_peripheral_oad_onchip project.
Environment
SDK : simplelink_cc13x2_26x2_sdk_5_20_00_52
CCS : Version: 10.1.1.00004
XDS : 3.61.2.27
First, I removed two buttons menu and display from project as below.
And then I added UartLog in project.
1. Added following include statement and function call in main.c
//#include <ti/display/Display.h>
#include <ti/drivers/UART.h>
// Comment this in to use xdc.runtime.Log, but also remove UartLog_init below.
//#include <xdc/runtime/Log.h>
#include <ti/common/cc26xx/uartlog/UartLog.h> // Comment out to use xdc Log.
/* Initialize the RTOS Log formatting and output to UART in Idle thread.
* Note: Define xdc_runtime_Log_DISABLE_ALL and remove define UARTLOG_ENABLE
* to remove all impact of Log statements.
* Note: NULL as Params gives 115200,8,N,1 and Blocking mode */
UART_init();
UartLog_init(UART_open(CONFIG_DISPLAY_UART, NULL));
2. Added include statement in simple_peripherals_oad_onchip.c
//#include <ti/display/Display.h>
#include <ti/common/cc26xx/uartlog/UartLog.h>
#include <ti/display/AnsiColor.h>
3. Check UART Log in sysconfig as below.

4. Added uart log functions in simple and change Display_printf to Log_info0 as below.
static void SimplePeripheral_init(void)
{
Log_info0("SimplePeripheral_init");
//Display_print0(dispHandle, SP_ROW_STATUS_1, 0, "OAD DL Complete, wait for Enable");
Log_info0("OAD DL Complete, wait for Enable");
I compiled and run but I didn’t get any output.
Can I get some guides and please let me know how can I work.
