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/CC2640R2F: -- [BUG] project zero disable uartlog fail build

Part Number: CC2640R2F

Tool/software: TI-RTOS

project zero of simplelink_cc2640r2_sdk_2_30_00_28.

disable uartlog by changing defined symbles as described in Uartlog.h.  change UARTLOG_ENABLE to xUARTLOG_ENABLE, then build will fail at linking for symbols Log_xx not defined.

detail message while compiling:

"../PROFILES/led_service.c", line 218: warning #225-D: function "Log_info1" declared implicitly
"../PROFILES/led_service.c", line 233: warning #225-D: function "Log_info1" declared implicitly
"../PROFILES/led_service.c", line 238: warning #225-D: function "Log_warning0" declared implicitly
"../PROFILES/led_service.c", line 268: warning #225-D: function "Log_info2" declared implicitly
"../PROFILES/led_service.c", line 280: warning #225-D: function "Log_error1" declared implicitly
"../PROFILES/led_service.c", line 292: warning #225-D: function "Log_error3" declared implicitly
"../PROFILES/led_service.c", line 319: warning #225-D: function "Log_info2" declared implicitly
"../PROFILES/led_service.c", line 329: warning #225-D: function "Log_error1" declared implicitly
"../PROFILES/led_service.c", line 397: warning #225-D: function "Log_info4" declared implicitly
"../PROFILES/led_service.c", line 417: warning #225-D: function "Log_error0" declared implicitly
"../PROFILES/led_service.c", line 423: warning #225-D: function "Log_error0" declared implicitly
"../PROFILES/led_service.c", line 469: warning #225-D: function "Log_info5" declared implicitly
"../PROFILES/led_service.c", line 493: warning #225-D: function "Log_error0" declared implicitly
"../PROFILES/led_service.c", line 499: warning #225-D: function "Log_error0" declared implicitly
"../PROFILES/led_service.c", line 504: warning #225-D: function "Log_error0" declared implicitly
"../PROFILES/led_service.c", line 513: warning #225-D: function "Log_error0" declared implicitly
Finished building: "../PROFILES/led_service.c"

include of Uartlog.h in the  main.c, project_zero.c, button_service.c, led_service.c, data_service.c, c files should be changed according to the statement of Uartlog.h file.

from

#ifdef UARTLOG_ENABLE
#include <uartlog/UartLog.h>
#endif

to

#ifdef UARTLOG_ENABLE
#include "UartLog.h"
#else
#include <xdc/runtime/Log.h>
#endif

 

  • Thanks for reporting to us.
    We will make sure it gets fixed in the future release.
    It's a bit late to get this into Q4 release, but we will make sure it gets fixed.

    Thanks again.
  • one more thing, the ifdef needed for the main.c too:

      /* Initialize the RTOS Log formatting and output to UART in Idle thread.
       * Note: Define xdc_runtime_Log_DISABLE_ALL to remove all impact of Log.
       * Note: NULL as Params gives 115200,8,N,1 and Blocking mode */
      UART_init();
    #ifdef UARTLOG_ENABLE
      UartLog_init(UART_open(Board_UART0, NULL));
    #endif