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-CC1352R1: Suppressing UI in 15.4 Sensor_OAD in SDK3.30

Part Number: LAUNCHXL-CC1352R1

Hello,

I am currently using SDK 3.20 and wish to switch on to the latest SDK (3.30). But I noticed that the latest SDK has a UI/Console which is very user friendly btw, but doesn't replicate my usage.

I have some debug messages which are essential for my purpose, and want to display those instead of the UI/console.

So, is there any way to gracefully suppress the UI/console while retaining the basic functionality as it is?

Thanks,

Kartik

  • Hey Kartik,

    Thanks for your comments regarding the Common UI.

    Unfortunately, there currently isn't a graceful way to suppress the CUI. One thing to try is to set the MAX_REGISTERED_MENUS to 0 in cui.h. This will remove the menu from the UART terminal and leave only the status lines to be printed.

    You'd have to remove the calls to CUI related API's to fully strip it from your application. If you run into any issues with this, please let me know.

    The dev team is working on implementing this feature, but I do not have a release date just yet.

  • Hi Ammar,

    Thank you for your quick reply.

    Actually, I was able to suppress the CUI (a makeshift method for now) but i am not sure if this is the right way, i did the following-

    I commented the UART_init() in CUI_init function and initialised the display_init() function in main.c .

    By using the display_init() now I am able to print my debug messages.

    But I am not sure if this method is correct or will it create any problem in future?

    Thanks,

    Kartik

  • Hey Kartik,

    I think you're better off setting cuiParams.manageUart to false when you call CUI_init, as shown below. This performs the same behavior but will avoid any conflicts with the CUI attempting to access an uninitialized UART. You should still be able to use display_init() after setting the flag to false.

    CUI_params_t cuiParams;
    CUI_paramsInit(&cuiParams);
    cuiParams.manageUart = false; //ADD THIS LINE
    
    // One-time initialization of the CUI
    if (CUI_SUCCESS != CUI_init(&cuiParams)) {
        // handle failure
    }