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/AWR1642: How to change ADCBUFCQConfig-> cqDataWidth?

Part Number: AWR1642
Other Parts Discussed in Thread: MMWAVE-SDK

Tool/software: Code Composer Studio

1 I download the project that mmWave SDK Demo.

   I want to change ADCBUFCQConfig->cqDataWidth that is Raw12 from Raw14 in this project.

   Where can I add the function in mss or dss?

2.Or may I change the adcbuf that at C:\ti\mmwave_sdk_01_01_00_02\packages\ti\drivers\adcbuf.

   Do makeall to build lib. And the project will link to the new library itself ?

  • Hello Juiyang Chi,

    Please refer to our mmwave-sdk-user-guide.pdf that is available in "docs" folder of the MMWAVE-SDK for the details on the mmwave configuration parameters.

    The configuration files for the mmw demo are available in "$mmwave_sdk_01_01_00_02\packages\ti\demo\xwr16xx\mmw\profiles" .
    You can change the cqdataWidth by changing the configuration parameter "adcCfg: ADC config message to RadarSS. Number of ADC bits (0 for
    12-bits, 1 for 14-bits and 2 for 16-bits)" .

    You can send the modified configuration to the device using the "Load config from PC and send" from the mmwave demo visualizer.

    Thanks,
    Raghu
  • Hello JuiYang,

    To set CQ configuration you can call an API

    ADCBuf_CQConf cqConfig;
    ADCBuf_control(adcbufHandle, ADCBufMMWave_CMD_CONF_CQ, (void *)&cqConfig);

    This you need to call after it's being set for ADCBufMMWave_CMD_CHANNEL_ENABLE.

    In this case you don't need to build the library just build the demo application. And to build any library you need to build that specific library, running 'gmake all' on demo command line path won't build any library.

    P.S. - Current SDK 1.1 doesn't support CQ configuration in the demo application, so you need to amend the source to add this feature.


    Regards,
    Jitendra
  • Hi Raghu,
    I read the mmwave-sdk-user-guide.
    It say adcCfg only 16-bit is supported in mmW demo, and all modes supported but only 16-bit is tested in capture demo.
    If I want to change code for making 12-bits from 16bits in mmW demo.
    What can I do?

    Cheers,
    JuiYang
  • Hi Jitendra,
    I have read the code in mmwave_sdk_01_01_00_02\packages\ti\drivers\adcbuf\test\common\test_adcbuf.c
    Lines 435: why it set cqConf.cqDataWidth= 5?
    The size of cqDataWidth is not 16-bit, 14-bit and 12-bit?

    Why it say 0x1:Raw16, 0x2:Raw12, 0x3:Raw14 in ADCbuf.h ?

    (C:\ti\mmwave_sdk_01_01_00_02\packages\ti\drivers\adcbuf\ADCBuf.h)

    Cheers,
    JuiYang

  • Hello JuiYang,
    In test_adcbuf.c 'cqConf.cqDataWidth= 5' is for negative testcase.

    Valid value for ADCBuf_CQConf.cqDataWidth is 0x1:Raw16, 0x2:Raw12, 0x3:Raw14 .

    Regards,
    Jitendra