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.

CCS/AWR1642BOOST: Sending config profile to SRR_demo through CLI instead of using hard-coded profile config in header file

Part Number: AWR1642BOOST

Tool/software: Code Composer Studio

Hi ,

I am trying to imitate and send the configuration of the SRR_demo through CLI port (UART) for it to work. Don't want the code to take the configuration from srr_config_consts.h. Please let me know where and how to invoke the CLI and bypass the calling of header files.

Regards,

Pritam

  • Hi Pritam,

    Please refer mmw demo which uses CLI feature to get the command over UART and parse it internally to send it to BSS/DSS.

    mmw_cli.c file implements this feature.

    Regards,

    Jitendra

  • Hello Jitendra,

    I understand that on invoking the CLI  the SRR_demo can be configured (as suggested by you) but,

    1) Will that not conflict with the SRR_demo's way of accepting the configuration as it is hard coded in the Header file.

    2) Also, how to parse the CLI config for SRR configuration. 

  • Hi Pritam,

    1) It does conflict with hard coded config. You need to cut out that framework of accepting the header file based configuration and add CLI based framework.

    2) You need to refer mmw demo CLI framework but for SRR each configuration command may differ slightly which you need to consider while implementing those. And in mmw demo it uses CLI utils library to parse most of CLI commands which in SRR case either you can use same library or implement at the application.

    Regards,

    Jitendra

  • Hello Jitendra,

    Thanks for the response. I am implementing the cli task now. Please also let me know, inside the mss_main() where to disable the fetching of the configuration parameters from the hard coded header files. I am not able to trace it properly. 

  • Hi Pritam,

    mss_srr_cli.c -> SRR_MSS_CLIBasicCfg function configures all the basic configs which you may need to migrate to CLI framework.

    Within the same function it invokes MMWave_open -> MMWave_openLink where it calls few of basic configurations using mmwave library.

    mmw demo mmwDemo_CLLIInit is equivalent to SRR_MSS_CLIInit which is being called from main.c 

    So you need to update cliCfg.tableEntry within SRR_MSS_CLIInit function to implement required CLI functions and define those CLI functions as well.

    Regards,

    Jitendra

  • Ok. Will get back after doing the necessary changes.

    Thanks