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.

AWR1843BOOST: MRR CLI blocking UART data

Part Number: AWR1843BOOST


Hello,

Enabling the CLI in the MRR project causes the UART data port to stop working, what can be the problem?

Regards,

Mohamed

  • Hello Mohamed,

    I would request you to refer mmw demo from mmwave SDK to implement the CLI feature in MRR demo.

    Few pointers for UART implementation in mmw demo-

    mss_main.c :: MmwDemo_platformInit , gMmwMssMCB.commandUartHandle, gMmwMssMCB.loggingUartHandle

    Look for mmw_cli.c file for CLI command implementation. 

    There are two UART mmw demo uses, cli-UART, logger-uart. first one is capable of send/recieve data but logger-uart is capable of only sending from device (can't recieve data from PC to device).

    So please make sure that you use right UART instance in MRR as CLI and configure same Baud rate in PC serial tool as it is being set in the embedded applicaiton. 

    Regards,

    JG

  • Hello Jitendra,

    In the MRR, the CLI config. is exactly the same as in the demo, it's just not opened, as below:

        #if 0
    
        /* Open the CLI: */
    
        if (CLI_open (&cliCfg) < 0)
    
        {
    
            System_printf ("Error: Unable to open the CLI\n");
    
            return;
    
        }
    
        System_printf ("Debug: CLI is operational\n");
    
        #endif 
    
    

    I just removed the if condition here and it blocks the logging UART intsance

     

     

  • Hello Mohamed,

    In CLI_Open function it creates a Task 'CLI_task' and within this task it 'UART_read' function which is blocking till it gets input text (ends with Enter).

    look into - ti\utils\cli\src\cli.c

    So you need to provide an input text to that UART from PC.

     

    Regards,

    Jitendra