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: how to check the value of the variable used within the function mmwabelib_cfarCadBwrap_wNoise()

Part Number: IWR6843ISK
Other Parts Discussed in Thread: IWR6843

I am testing Out of Box Demo using IWR6843 ISK and mmwave Demo visualizer.
(Test in Debug Mode using Code Composer Studio for a deep understanding of Out of Box)

I'm studying the function of CFAR now, and I want to print out the values of the variables used in the mmwabelib_cfarCadBwrap_wNoise() function in the mmwabelib_cfarca.c file to understand the code, but I don't know what to do.

I have checked that the System_printf() function allows output to the console, but if you use the System_printf() function within the mmwavelib_cfarCadBwrap_wNoise() function, it could not output to the console.

I want to know how to check the value of the variable used within the function mmwabelib_cfarCadBwrap_wNoise()

  • Hello,

    The SDK provides the source code for the various computation units, but these are not compiled when you run the code in CCS. What is pulled into CCS are library files for these computation units which are then linked to form the project's executable. In the SDK User Guide are instructions on how to modify the source code e.g .c file and then rebuild the library file which then will be linked and modifications to the .c file should take effect.

    SDK User Guide Section 4.5:
    <MMWAVE_SDK_INSTALL_PATH>\docs\mmwave_sdk_user_guide.pdf

    Additionally, here some CFAR documentation:

    <MMWAVE_SDK_INSTALL_PATH>/docs/mmwave_sdk_module_documentation.html

    Best regards,

    Connor Desmond

  • Thanks for your support .

    I have tried your advice.

    but  it couldn't compile

    below message is the result to try

    "function "system_printf" decllared iplicitly

    I want to see the value of variable in "mmwavelib_cfarca" file

    what command can I use?

  • How about try add  #include <xdc/runtime/System.h>  in cfarca.c?

  • Thanks for your answer

    I have add #include <xdc/runtime/System.h>  in cfarca.c

    but the result is the same. please refere below

    and I have changed the directroy from <xdc/runtime/System.h> to <ti/ccs1011/xdctools_3_61_02_27_core/packages/xdc/runtime/System.h>

    Because My case system.h file is in this directory

    but result is the same

    and I have one more question

    Can I use  System_printf() in the "mmwabelib_cfarca.c" file ?

    Is there any function for using "mmwabelib_cfarca.c" file ?

    Thanks

  • Hello,

    An alternative approach to using System_Printf() would be to use CCS Debug to check any values of interest during the execution of the code. Below is a resource that describes what needs to be done to change the optimization in the building process of the SDK libraries.

    SDK Deep Dive - Debug Guide: Time stamp: 56:10

    training.ti.com/easy-evaluation-and-development-mmwave-systems-software-development-kit

    Best regards,

    Connor Desmond