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.

AWR1843: How to adjust the value of DataConfig in mmWaveStudio CLI Tool.

Part Number: AWR1843

How to adjust the value of DataConfig in mmWaveStudio CLI Tool.

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1010544/awr1843-setting-values-do-not-match-between-mmwavestudio- gui-and-mmwavestudio-cli
Please let me know how to do the following, which you commented in

> You need to change that in the device application available under src directory.

  • Please refer sec\mss\mmw_lvds_stream.c : MmwDemo_LVDSStreamInit function

    initCfg.u.lvdsCfg.lvdsLaneEnable = 0x3U;
    initCfg.u.lvdsCfg.ddrClockMode = 1U;
    initCfg.u.lvdsCfg.ddrClockModeMux = 1U;

  • Thank you for your answer.
    I also want to configure the following settings. I think the file you gave me has something to do with it, but I can't find the following setting, what should I do?

    DATA_TRANS_FMT_PKT0 -> 00000001 ADC
    DATA_TRANS_FMT_PKT1 -> 00000000 Suppress packet 1 transmission
    CQ0_TRANS_SIZE -> 10000100 132
    CQ1_TRANS_SIZE -> 10000100 132
    CQ2_TRANS_SIZE -> 01001000 72

        /* Populate the configuration: */
        initCfg.socHandle                 = gMmwMssMCB.socHandle;
        initCfg.enableECC                 = 0U;
        initCfg.crcEnable                 = 1U;
        /* Up to 1 SW session + 1 HW session can be configured for each frame. Therefore max session is 2. */
        initCfg.maxSessions               = 2U;
        initCfg.enableDebugMode           = false;
        initCfg.interface                 = CBUFF_Interface_LVDS;
        initCfg.outputDataFmt             = CBUFF_OutputDataFmt_16bit;
        initCfg.u.lvdsCfg.crcEnable       = 0U;
        initCfg.u.lvdsCfg.msbFirst        = 1U;
        /* Enable all lanes available on the platform*/
        initCfg.u.lvdsCfg.lvdsLaneEnable  = 0x3U;
        initCfg.u.lvdsCfg.ddrClockMode    = 1U;
        initCfg.u.lvdsCfg.ddrClockModeMux = 1U;
    

    Or is it being written automatically because you have it set to read JSON files? If it is written, is there any way to check?

    A part of the JSON file is as follows

          "rawDataCaptureConfig": {
            "rlDevDataFmtCfg_t": {
              "iqSwapSel": 0,
              "chInterleave": 1
            },
            "rlDevDataPathCfg_t": {
              "intfSel": 1,
              "transferFmtPkt0": "0x1",
              "transferFmtPkt1": "0x0",
              "cqConfig": 2,
              "cq0TransSize": 132,
              "cq1TransSize": 132,
              "cq2TransSize": 72
            },
            "rlDevLaneEnable_t": {
              "laneEn": "0x3"
            },
            "rlDevDataPathClkCfg_t": {
              "laneClkCfg": 1,
              "dataRate_Mbps": 600
            },
            "rlDevLvdsLaneCfg_t": {
              "laneFmtMap": 0,
              "laneParamCfg": "0x1"
            }
          },
    

  • Let me check this and get back to you.

  • CP_ADC_CWRefer mss_main.c Mmw_configCQ function

    mmw_lvds_strean.c : MmwDemo_LVDSStreamHwConfig() function to set ADC or CP_ADC_CQ.