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: Failed to compile

Part Number: AWR1642

Tool/software: Code Composer Studio

Hi 

I got some issue describe as below.

I add watchdog API function into my project and i can build code successful by CCS tool.

but when i use "gmake all" command build code, there are some error log showed as below.

should i link watchdog lib path? how to do ?

  • Hi,

    Yes, you need to add the files to the make file.

    Please check the SDK UG

    Thank you

    Cesar

  • The error shown is a simple coding problem.  It is usually flagged as a warning, not an error.  What the error is saying is that the variable is defined, such as:

    int errCode;

    Then it is used, for example:

    errCode = myfunction();

    But then the variable is never again used.  In this case, there's no point for errCode to exist at all.

    There are two ways to fix it.  Either delete all references to errCode, or add a piece of code following the function call like this:

    if (errCode != 0)

       printf("The function returned an error\n");

    That will solve the compile error, but you make have a linker error if the lib has not been referenced in the makefiles.  Make sure you read about the watchdog functionality so that you do not then have an error when the program runs.

      -dave

  • Hi 

    i can't find page about how to add library path into makefile.

    could you point which page describe about add file to make file.

    thanks

  • You haven't mentioned what you are building.  If it's the MSS portion of the demo, the makefile you want is:

    C:\ti\mmwave_sdk_02_01_00_00\packages\ti\demo\xwr16xx\mmw\mss\mss_mmw.mak

    See the section of the makefile I pasted below.  Look at the two lines that include the UART driver.  Copy each of those lines replacing uart with the driver you are adding.  Make sure your editor does not strip off trailing whitespace or the makefile will be broken.

    ###################################################################################
    # Additional libraries which are required to build the DEMO:
    ###################################################################################
    MSS_MMW_DEMO_STD_LIBS = $(R4F_COMMON_STD_LIB)							\
    		   	-llibpinmux_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT) 		\
    		   	-llibdma_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)			\
    		   	-llibcrc_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)			\
    		   	-llibuart_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)			\
    		   	-llibgpio_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)  		\
    		   	-llibmailbox_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)		\
    		   	-llibmmwavelink_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)	\
    		   	-llibmmwave_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)  		\
    			-llibcli_$(MMWAVE_SDK_DEVICE_TYPE).$(R4F_LIB_EXT)
    MSS_MMW_DEMO_LOC_LIBS = $(R4F_COMMON_LOC_LIB)						\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/drivers/pinmux/lib 	   	\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/drivers/uart/lib		\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/drivers/dma/lib			\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/drivers/crc/lib			\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/drivers/gpio/lib		\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/drivers/mailbox/lib	   	\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/control/mmwavelink/lib	\
    		   	-i$(MMWAVE_SDK_INSTALL_PATH)/ti/control/mmwave/lib      \
                -i$(MMWAVE_SDK_INSTALL_PATH)/ti/utils/cli/lib