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.

IWR6843ISK: Not able to compile Demo Code

Part Number: IWR6843ISK
Other Parts Discussed in Thread: SYSBIOS

Hi, 

I have been working with Demo codes given in Resource Explorer since past two weeks without any compilation error. Today, I encountered one. The CCS log while compiling DSS project looks like below:

**** Build of configuration Debug for project high_accuracy_68xx_dss ****

"C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k -j 12 all -O 
 
rm -f "C:/Users/kamle/OneDrive/Desktop/Work/CCS_Test/high_accuracy_68xx_dss/Debug/high_accuracy_68xx_dss.bin"
makefile:194: recipe for target 'pre-build' failed
process_begin: CreateProcess(NULL, rm -f C:/Users/kamle/OneDrive/Desktop/Work/CCS_Test/high_accuracy_68xx_dss/Debug/high_accuracy_68xx_dss.bin, ...) failed.
 
gmake[1]: [pre-build] Error 2 (ignored)
 
Building file: "../dss/dss_mmw.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_50_08_24_core/xs" --xdcpath="C:/ti/bios_6_73_01_01/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.c6x:IWR68XX:false:600 -r release -c "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-c6000_8.3.11" --compileOptions "--enum_type=int " "../dss/dss_mmw.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring dss_mmw.xe674 from package/cfg/dss_mmw_pe674.cfg ...
generating custom ti.sysbios library makefile ... 
Starting build of library sources ...
making C:/Users/kamle/OneDrive/Desktop/Work/CCS_Test/high_accuracy_68xx_dss/dss/src/sysbios/sysbios.ae674 ...
Build of libraries failed.
dss/subdir_rules.mk:19: recipe for target 'build-1829530575-inproc' failed
C:/Users/kamle/AppData/Local/Temp/make12684-1.sh: 1: Syntax error: "(" unexpected
gmake: *** [C:/Users/kamle/OneDrive/Desktop/Work/CCS_Test/high_accuracy_68xx_dss/dss/src/sysbios/sysbios.ae674] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
 
js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/dss_mmw_pe674.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/dss_mmw_pe674.xdl'
gmake.exe: *** [package/cfg/dss_mmw_pe674.xdl] Deleting file `package/cfg/dss_mmw_pe674.h'
gmake.exe: *** [package/cfg/dss_mmw_pe674.xdl] Deleting file `package/cfg/dss_mmw_pe674.c'
js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[2]: *** [build-1829530575-inproc] Error 1
gmake[1]: *** [build-1829530575] Error 2
gmake[1]: Target 'main-build' not remade because of errors.
gmake: *** [all] Error 2
dss/subdir_rules.mk:16: recipe for target 'build-1829530575' failed
makefile:160: recipe for target 'all' failed

**** Build Finished ****

Prior to this, I was trying to bypass CLI using cli.c from TIe2e forum. I was partially successful in doing that either. My method was:

1> replace cli.c in the mmwavesdk path/packages/ti/utils/cli/src/cli.c as given here: [FAQ] IWR6843: How to add a hard coded configuration to mmWave radar projects - Sensors forum - Sensors - TI E2E support forums

2> rebuild the cli driver using 'make clean' and 'make all' inside the cli driver location. (after setting up the environmental variables), recompiled the project, -> worked partially SO,

3> I tried to change the mmwavesdk cli driver's "cli.c" again and rebuild

When, I tried to compile the project, the above error started. I have gone through : AWR1642BOOST: AWR1642BOOST - Sensors forum - Sensors - TI E2E support forums and CCS/IWR6843ISK-ODS: mmWave Area Scanner Demo Won't Compile - Code Composer Studio forum - Code Composer StudioTm︎ - TI E2E support forums

Further info: CCS Preferences look like below:

Please let me know, what I am missing here.

Regards,

Kamlesh

  • Hi Kamlesh,

    Thank you for reaching out! 

    Can you please share any changes you may have made to the dss_mmw.cfg file? 

    More information on what you seem to be trying to do can be found in our Hard Coded Config fundamentals lab on TIREX

    Thanks again,

    Angie

  • Hi Angie,

    I have not done any changes in dss_mmw.cfg, In fact, I have opened this file since you mentioned. I was able to build the projects till yesterday. I would try the hard Config fundamentals lab. Though, with currently used cli.c in mmwavesdk, I was able to get below output on CFG port till now (prior to this building issue): But, No data was received on DATA Uart. As Present cli.c, enables cmd after the hard coded configuration, when I manually put the commands, I could see the data.

    So. There are two issues:

    1 (Immediate) : How to build the projects again? I am clueless here.

    2 getting hard config to work -> Here I will try as you mentioned and few other debug options I have for now.

    Output on CFG port: 

    ******************************************
    
    xWR68xx High Acc Demo. SDK: 03.05.00.04
    
    ******************************************
    
    Wait some time for system to initialize...
    
    Performing hard-coded config
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Skipped
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done
    
    mmw_Rv1:/>Command
    
    Done

  • [Update]: uninstalling and reinstalling CCS worked for now. Also, I have removed cygwin and msys2. Now, I am able to build the code. I will try to resolve the hard coded configuration issue. Will appreciate if you have any inputs on why I may not be getting data. 

    I have tried to print the tokenized args for hardcoded and manual configuration as can be seen below:

    ******************************************
    
    xWR68xx High Acc Demo. SDK: 03.05.00.04
    
    ******************************************
    
    Wait some time for system to initialize...
    
    Performing hard-coded config
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    Skipped
    
    Test
    
    mmwDemo:/>Command_new
    
    sensorStop.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    flushCfg.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    dfeDataOutputMode1.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    channelCfg110.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    adcCfg21.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    adcbufCfg0111.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    profileCfg06077114.40033.71151250000048.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    chirpCfg00000001.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    frameCfg0110050010.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    lowPower00.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    guiMonitor110001.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    RangeLimitCfg210.33.0.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>Command_new
    
    sensorStart.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>sensorStart
    sensorStart.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>sensorStart
    sensorStart.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>flushCfg
    flushCfg.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>sensorStop
    sensorStop.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>..
    ...ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`Ú'..' is not recognized as a CLI command
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>flushCfg
    flushCfg.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>..
    ...ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`Ú'..' is not recognized as a CLI command
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>flushCfg..
    flushCfg...ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`Ú'flushCfg..' is not recognized as a CLI command
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>dfeDataOutputMode 1
    dfeDataOutputMode1.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>channelCfg 1 1 0
    channelCfg110.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>adcCfg 2 1
    adcCfg21.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>adcbufCfg 0 1 1 1
    adcbufCfg0111.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>profileCfg 0 60 7 7 114.4 0 0  33.71 1 512 5000 0 0 48
    profileCfg06077114.40033.71151250000048.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>chirpCfg 0 0 0 0 0 0 0 1
    chirpCfg00000001.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>frameCfg 0 0 10 0 500 1 0
    frameCfg0010050010.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>lowPower 0 0
    lowPower00.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>guiMonitor 1 1 0 0 0 1
    guiMonitor110001.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>RangeLimitCfg 2 1 0.3 3.0
    RangeLimitCfg210.33.0.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>sensorStart
    sensorStart.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>sensorStop
    sensorStop.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚDone
    
    mmwDemo:/>
    .ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå.ðŸå°ñ.å`ÚmmwDemo:/>

    Regards,

    Kamlesh

  • [Update] The Hard coded config is also working. I added the cli file from resources explorer and discarded previous file. Now, It is working. Thanks.

  • Kamlesh,

    Thank you for letting me know and for documenting your steps on e2e! Please make another thread if you have any more questions.

    Thanks again,

    Angie