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/IWR1443: 77GHz-Level Transmitter Reference Design (TIDEP-0091) - shows zero or large negative distance after compiling/building the source code

Part Number: IWR1443

Tool/software: Code Composer Studio

Hi,

I'm trying to implement the reference design "Power Optimization for IWR1443 77GHz-Level Transmitter Reference Design"

I've got IWR1443BOOST & MSP-EXP432P401R up & running without an issue by flashing the pre-built .bin files comes in the .zip file (www.ti.com/.../tidcde2a).

However, when I import the source code (Power Optimized Level Sensing Demo Software (Rev. A)10 Jan 2018 | http://www.ti.com/lit/zip/tidcde2a) to CCS ( Version: 7.4.0.00015) and try to build the source code, it fails the build and shows following errors.

I installed following versions of software

SimpleLink MSP432P4 SDK version 1.60.0.12

mmWave SDK 1.1.0.02

"../main.c", line 55: fatal error #1965: cannot open source file "pthread.h"

"../main_thread.c", line 65: fatal error #1965: cannot open source file "pthread.h"

When I search through forums, found this : https://e2e.ti.com/support/microcontrollers/msp430/f/166/p/658784/2420612  and added  "${COM_TI_SIMPLELINK_MSP432_SDK_INSTALL_DIR}/source/ti/posix/ccs" to include options as mentioned in that thread.

It solves the build issue and compile & build happens without errors.

When I flash the both eval boards (IWR1443BOOST & MSP-EXP432P401R) with .bin files which I compiled in my computer,  it shows zero or large negative distance values as follows :

IWR1443 Data:
Dist 524.833984(m), power -1283999288
Dist -2257864097791.999578(m), power -1575677841
Dist -0.000000(m), power -1039361542

IWR1443 Data:
Dist 0.000000(m), power 2046473121
Dist 39203195749516218900680541.992188(m), power -1860649715
Dist 0.000000(m), power -1861922237

IWR1443 Data:
Dist 0.000000(m), power 150984704
Dist 0.000000(m), power 1755053833
Dist -0.000000(m), power -662474527

When I flash only MSP432 again (IWR1443 .bin image built on my computer remains) with the pre-built image (\level_sense_demo\msp432\Debug\lsdemo_msp432_m4f.out) it gives proper distances again and works well.

So obviously, there's something wrong with my MSP432 compiling/building.

Could someone help me to resolve this issue? 

Thanks & Regards,

Randy

  • Randy,

    Just to let you know that I was able to reproduce the issue and we are looking into the problem. We'll get back to you as soon as we figure it out. 

    Thanks and Regards,

    Michelle

  • Michelle,

    Thanks for the reply,

    Just letting you know, I tried compiling the source by changing the compiler versions, library versions etc.
    All trials gave me same result as described in my original post.

    Also I observed that the difference of the size of lsdemo_msp432_m4f.out :
    pre-built file : 2861 kB
    when built on my computer : it varies with different compiler versions, but always size is lesser than pre-built file

    Thanks,
    Randy
  • I suspect the size difference is caused by msp432 simpleLink version. According to gsg in the released package, the v1.4 was used, but we compiled with v1.6. Some warning messages were shown for msp432 compile, whether this is the cause of the issue is to be decided.

    Regards,
    Michelle
  • I downloaded & installed SimpleLink v.1.4 and tried to build the source with that by changing the "Properties>General>Products> SimpleLink MSP432P4 SDK 1.40.1.00" of "tirtos_builds_MSP_EXP432P401R_debug_ccs" and "lsdemo_msp432_m4f"

    However, it build fails and gives errors on both projects "tirtos_builds_MSP_EXP432P401R_debug_ccs" and "lsdemo_msp432_m4f"

    Probably, I need to edit paths such as "Include options" etc. to use SimpleLink v1.4 .
    Just tried this one to see whether it's working.
  • Hi Randy,

    SimpleLink v 1.40.1.00 is the correct version, and the MSP432 project should compile without errors.  I would suggest deleting your MSP432 project from CCS (click on "delete from disk"), then re-import the project from the .projectspec file.  After importing, go into Properties->General->Products as you mention and make sure 1.40.1.00 is the selected version.  Then do a build.

     -dave

  • Hi Dave,

    I deleted the files from disk and re-imported the project.
    Then configured the SimpleLink version.

    Now, the project "project tirtos_builds_MSP_EXP432P401R_debug_ccs" fails the build.
    Any suggestions please...

    Please see below build log :

    **** Build of configuration Debug for project tirtos_builds_MSP_EXP432P401R_debug_ccs ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O

    'Building file: "../debug.cfg"'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_00_10_core/xs" --xdcpath="C:/ti/simplelink_msp432_sdk_1_40_01_00/source;C:/ti/simplelink_msp432_sdk_1_40_01_00/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.msp432:MSP432P401R -r release -c "C:/ti/ti-cgt-arm_16.9.1.LTS" "../debug.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring debug.xem4f from package/cfg/debug_pem4f.cfg ...
    subdir_rules.mk:12: recipe for target 'build-508155233-inproc' failed
    js: "C:/Users/randi.tutor/workspace_v7/tirtos_builds_MSP_EXP432P401R_debug_ccs/debug.cfg", line 570: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.posix.tirtos' along the path: 'C:/ti/simplelink_msp432_sdk_1_40_01_00/source;C:/ti/simplelink_msp432_sdk_1_40_01_00/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;C:/ti/xdctools_3_50_00_10_core/packages;..;'. Ensure that the package path is set correctly.
    "./package/cfg/debug_pem4f.cfg", line 181
    gmake.exe: *** [package/cfg/debug_pem4f.xdl] Error 1
    js: "C:/ti/xdctools_3_50_00_10_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-508155233-inproc] Error 1
    'Building file: "../debug.cfg"'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_00_10_core/xs" --xdcpath="C:/ti/simplelink_msp432_sdk_1_40_01_00/source;C:/ti/simplelink_msp432_sdk_1_40_01_00/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.msp432:MSP432P401R -r release -c "C:/ti/ti-cgt-arm_16.9.1.LTS" "../debug.cfg"
    configuring debug.xem4f from package/cfg/debug_pem4f.cfg ...
    subdir_rules.mk:12: recipe for target 'build-508155233-inproc' failed
    js: "C:/Users/randi.tutor/workspace_v7/tirtos_builds_MSP_EXP432P401R_debug_ccs/debug.cfg", line 570: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.posix.tirtos' along the path: 'C:/ti/simplelink_msp432_sdk_1_40_01_00/source;C:/ti/simplelink_msp432_sdk_1_40_01_00/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;C:/ti/xdctools_3_50_00_10_core/packages;..;'. Ensure that the package path is set correctly.
    "./package/cfg/debug_pem4f.cfg", line 181
    xdctools_3_50_00_10_core\gmake.exe: *** [package/cfg/debug_pem4f.xdl] Error 1
    js: "C:/ti/xdctools_3_50_00_10_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-508155233-inproc] Error 1
    gmake[1]: *** [build-508155233] Error 2
    gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.
    subdir_rules.mk:9: recipe for target 'build-508155233' failed
    makefile:127: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****
  • Do you still have the 1.60 version of SimpleLink installed? I'm wondering if CCS somehow is still referencing it. If so, delete it completely, then try re-importing the project again - just to make sure that it doesn't get referenced during import.

    You should also restart CCS after removing 1.60.

      -dave

  • Hi Dave,

    I deleted SimpleLink 1.60 and after that it works!

    Now the built binaries on my computer give similar results to the pre-built binaries.
    The issue reported in my original post seems resolved (distance readings show zero or large negative numbers after building sources).

    However, the "lsdemo_msp432_m4f.out " file size is about 100 kB smaller than pre-built file.

    Everything looks fine except intermittent hanging of the software.

    Thanks ,
    Randy