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.

LAUNCHXL-CC2640R2: How to suppress ALL debug serial log code in Project_Zero project

Part Number: LAUNCHXL-CC2640R2


Hello everyone,

I want to suppress all the code and all linked files using UART for debug log prints.

The ProjectZero example program is linked with many LogPrint functions that use pins used as serial ports, and also take memory resource I want to release.

THe goal is to adapt this sample project to a spécific board my customer has developped and which uses I/Os for specific personal functions, and which is based on a 5x5 chip with less I/Os than the LAUNCHXL one.

Could someone explain and list what to change :

- Where are parts of code to suppress ? (I already suppressed some, but still have link errors such as unresolved symbol uartLog_flush, first referenced in D:\MesDocuments\Projets_TI\A020_S02_CARMOTIC_RELAY_App_v07\FlashROM_StackLibrary\configPkg\package\cfg\app_ble_pem3.oem3 A020_S02_CARMOTIC_RELAY_App_v07 C/C++ Problem).

- Do I need build option modifications ? (I already suppressed some defines suh as UARTLOG_ENABLE and defined xdc_runtime_Log_DISABLE_ALL as explained in main.c of projectZero).

- What are the files or links to SDK files I should remove ?

 

As it's not easy to find information in the documentation, I hope that someone can help me.

THank's a lot.

Regards

Patrick

 

  • Hi Patrick,

    1) You can delete the LaunchPad board files and replace them with the files found in C:\ti\simplelink_cc2640r2_sdk_3_10_00_15\source\ti\blestack\boards\CC2640R2DK_5XD 

    2) If you're using the xdc_runtime_Log_DISABLE_ALL and UARTLOG_ENABLE you should be good. If you find the code confusing/untidy you can remove all the print calls.

  • Hi Marie

    Thank's a lot, I changed CC2640R2DK_5XD.

    The "xdc_runtime_Log_DISABLE_ALL" and "UARTLOG_ENABLE" defines were already ok,

    I suppressed all code calls to "Log_xxx" functions, but as I had still an "uartLog_flush" link error remaining.

    Finally I found and suppressed the line  "dle.addFunc('&uartLog_flush');" in the app_ble.cfg.

    So it's Ok now.

    Thank's again, have a nice day !

    Patrick