AWR2243-2X-CAS-EVM: Hardcode CLI config for AWR2243-2X-CAS-EVM

Part Number: AWR2243-2X-CAS-EVM

Tool/software:

Hello,

I am using the AWR2243-2x-CAS-EVM board for my project. For board bring-up, we used the mmwave_2_chip_cascade code available in (radar_toolbox_3_20_00_04\source\ti\examples\Automotive_ADAS_and_Parking)
We imported the project into CCS, built it, and then flashed it to the board. We verified it using the mmwave_2_chip_cascade_visualizer MATLAB script from (radar_toolbox_3_20_00_04\tools\visualizers)
, and it is working fine.

Now, I want to change from UART CLI read configuration to a hardcoded CLI configuration. However, in the mmwave_2_chip_cascade project, a prebuilt library file (libcli_cascade_am273x.aer5f) is used directly, and there is no cli.c file available in mmwave_2_chip_cascade project to make the changes I need.

Could you please guide me on how to convert it from UART CLI read config to hardcoded CLI config?

Regards,

Miit Prajapati.

  • Hi,

    Please download the cli src code from this link valid 7 days

    Access Code: u#X5LWK4

     

    https://tidrive.ext.ti.com/u/vZESOl8REoivkRI8/a1600c30-68c9-483e-bec3-241c8c3f156e?l

    thank you
    Cesar

  • Hey,

    Thanks for sharing the code.

    To convert it into a hardcoded CLI configuration, I made changes in the cli.c file as mentioned below:

    1. Uncommented #define CLI_BYPASS.

    2. Added the configuration as shown below.

    CLI_MCB gCLI;
    #define CLI_BYPASS
    #define MAX_RADAR_CMD 35
    char* radarCmdString[MAX_RADAR_CMD] =
    {
    // "sensorStop \n\r",
    // "flushCfg \n\r",
    // "dfeDataOutputMode 1 \n\r",
    // "channelCfg 15 5 0 \n\r",
    // "adcCfg 2 0 \n\r",
    // "adcbufCfg -1 1 1 1 1 \n\r",
    // "lowPower 0 0 \n\r",
    // "profileCfg 0 77 267 7 57.14 0 0 70 1 656 13349 0 0 30 \n\r",
    // "chirpCfg 0 0 0 0 0 0 0 1 \n\r",
    // "chirpCfg 1 1 0 0 0 0 0 4 \n\r",
    // "frameCfg 0 1 16 0 656 100 1 0 \n\r",
    // "lowPower 0 0 \n\r",
    // "guiMonitor -1 1 1 0 0 0 1 \n\r",
    // "cfarCfg -1 0 2 8 4 3 0 15 1 \n\r",
    // "cfarCfg -1 1 0 4 2 3 1 15 1 \n\r",
    // "multiObjBeamForming -1 0 0.5 \n\r",
    // "calibDcRangeSig -1 0 -5 8 256 \n\r",
    // "clutterRemoval -1 0 \n\r",
    // "compRangeBiasAndRxChanPhase 0.0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 \n\r",
    // "measureRangeBiasAndRxChanPhase 0 1.5 0.2 \n\r",
    // "aoaFovCfg -1 -90 90 -90 90 \n\r",
    // "cfarFovCfg -1 0 0 22.88 \n\r",
    // "cfarFovCfg -1 1 -1 1.00 \n\r",
    // "extendedMaxVelocity -1 0 \n\r",
    // "calibData 0 0 0 \n\r",
    // "sensorStart \n\r",

    "sensorStop",
    "flushCfg",
    "dfeDataOutputMode 1",
    "channelCfg 15 7 1 15 7",
    "adcCfg 2 1",
    "adcbufCfg -1 0 1 0 1",
    "lowPower 0 0",
    "dataPathClkCfg 1 1",
    "profileCfg 0 77 107 7 57.14 0 0 70 1 416 8465 0 0 30",
    "dataPathConfig 0 1 0 2 64 64 64 0",
    "hsiClockConfig 9 0",
    "hsiLaneConfig 15 1 0 2 0 4 0 5 0 3 0 0",
    "dataFormatConfig 0 1",
    "chirpCfg 0 6 0 0 0 0 0 7",
    "frameCfg 0 7 16 0 416 50 1 0 2",
    "guiMonitor -1 3 0 0 0 0 0 1 1",
    "cfarCfg -1 1 3 16 0 0 1 23.0 0 7 0 1",
    "cfarCfg -1 0 3 16 0 0 1 23.0 0 7 0 1",
    "compressionCfg -1 1 0 0.5 8",
    "intfMitigCfg -1 25 28",
    "localMaxCfg -1 10 35 ",
    // "antennaCalibParams1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1",
    // "antennaCalibParams2 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1",
    // "antennaCalibParams3 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1",
    "antennaCalibParams1 -0.44086 -0.37671 -0.27167 -0.61047 -0.13922 -0.62286 0.02533 -0.60785 -0.38330 0.56158 -0.59875 0.36621 -0.73328 0.08215 -0.64923 0.01227 -0.01538 -0.58875 0.27704 -0.62524 0.38312 -0.52728 0.47943 -0.37726 -0.66345 0.09552 -0.67474 -0.19995 -0.54498 -0.49585 -0.42108 -0.48193",
    "antennaCalibParams2 0.52539 -0.28143 0.69080 -0.06561 0.65625 0.08118 0.57855 0.26385 -0.37817 -0.53223 -0.14532 -0.67084 0.16516 -0.73163 0.23608 -0.61774 0.58875 0.13110 0.56549 0.39886 0.45013 0.48950 0.27313 0.57507 0.06879 -0.65051 0.32404 -0.59290 0.58905 -0.44318 0.57373 -0.32166",
    "antennaCalibParams3 -0.02155 0.61859 -0.30334 0.63727 -0.40479 0.53766 -0.51367 0.38599 0.66302 -0.05438 0.63898 0.22076 0.54443 0.48260 1.00000 0.00140 -0.38184 -0.48633 -0.18005 -0.69617 -0.04089 -0.68475 0.15771 -0.64050 -0.48895 0.48785 -0.66699 0.26941 -0.77966 -0.04065 -0.69421 -0.13177",
    "analogMonitor 0 0 ",
    "calibData 0 0 0",
    "aoaFovCfg -1 -50 50 -30 30",
    "appSceneryParams 0.0 0.0 1.0 0.0 0.0 -14.0 14.0 0.1 15.0 -5.0 5.0",
    "appGatingParams 3 2 2 2 4",
    "appStateParams 3 3 6 500 5 6000",
    "appAllocParams 40 100 0.1 13 0.5 20",
    "gtrack 1 800 30 0.0 19.41 0.1522 0.5 0.5 0.0 0.050",
    "ransac 1 200 1.0",
    "measureRangeBiasAndRxChanPhase 0 3. 0.5",
    "sensorStart",
    };

    Hardcoded CLI configuration is still not working.
    Note: I used the same configuration that works with the UART CLI. The configuration file is shown below

    Test_CLI_1.cfg

    Regrads,

    Miit prajapati.

  • Hi,

    We have the High End Corner Radar Demo available on Radar Toolbox as a reference with hard coded configuration.

    Please use that code as reference. 

    C:\data-nobackup\2025\radar_toolbox_3_10_00_05\source\ti\examples\Automotive_ADAS_and_Parking\high_end_corner_radar

    Thank you
    Cesar