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.

Problem with TI RSLK using MSP432 MSPDRIVERLIB

I'm having the following error message:

CORTEX_M4_0: GEL: Encountered a problem loading file: /Users/paolalondono/Desktop/lab3/Debug/lab3.out Could not open file

The code I wrote does not show any syntax error. It shows that the error comes from the library. I deleted the library, dowloaded a new copy of it and added it to my program several times to see if that will fix it. When I ran the build system, I checked for errors in the particular files that build shows, but I cannot find anything wrong with them. So at this point I don't know what else I should do.

This is my code:

/* Include header files */

#include "driverlib.h"

#include "mechrev.h"

/* Define macros and function prototypes if needed */

#define LED1                GPIO_PORT_P1,GPIO_PIN0

#define LEDR                GPIO_PORT_P2,GPIO_PIN0

#define LEDG                GPIO_PORT_P2,GPIO_PIN1

#define LEDB                GPIO_PORT_P2,GPIO_PIN2

#define BTN1                GPIO_PORT_P1,GPIO_PIN1

#define BTN2                GPIO_PORT_P1,GPIO_PIN4

#define BMP0                GPIO_PORT_P4,GPIO_PIN0

#define BMP1                GPIO_PORT_P4,GPIO_PIN2

#define BMP2                GPIO_PORT_P4,GPIO_PIN3

#define BMP3                GPIO_PORT_P4,GPIO_PIN5

#define BMP4                GPIO_PORT_P4,GPIO_PIN6

#define BMP5                GPIO_PORT_P4,GPIO_PIN7

/* Declare global and volatile variables if needed */

/* Main program */

void main(void)

{

    /* Stop Watchdog Timer */

    MAP_WDT_A_holdTimer();

    /* Call the mechrev_setup function included in the mechrev.h header file */

    mechrev_setup();

    /* Initialize GPIOs P1.1 and P1.4 for PushButtons (S1 and S2 switches) */

    MAP_GPIO_setAsInputPinWithPullUpResistor(BTN1);

    MAP_GPIO_setAsInputPinWithPullUpResistor(BTN2);

    /* Initialize GPIOs P1.0, P2.0, P2.1 and P2.2 for LED1 and LED2 */

    MAP_GPIO_setAsOutputPin(LED1);

    MAP_GPIO_setAsOutputPin(LEDR);

    MAP_GPIO_setAsOutputPin(LEDG);

    MAP_GPIO_setAsOutputPin(LEDB);

    MAP_GPIO_setOutputLowOnPin(LED1);

    MAP_GPIO_setOutputLowOnPin(LEDR);

    MAP_GPIO_setOutputLowOnPin(LEDG);

    MAP_GPIO_setOutputLowOnPin(LEDB);

    /* Initialize GPIOs P4.0, P4.2, P4.3, P4.5, P4.6 and P4.7 for Bump Sensors */

    MAP_GPIO_setAsInputPinWithPullUpResistor(BMP0);

    MAP_GPIO_setAsInputPinWithPullUpResistor(BMP1);

    MAP_GPIO_setAsInputPinWithPullUpResistor(BMP2);

    MAP_GPIO_setAsInputPinWithPullUpResistor(BMP3);

    MAP_GPIO_setAsInputPinWithPullUpResistor(BMP4);

    MAP_GPIO_setAsInputPinWithPullUpResistor(BMP5);

    /* Enable interrupts for Bump Sensors' GPIOs */

    MAP_GPIO_enableInterrupt(BMP0);

    MAP_GPIO_enableInterrupt(BMP1);

    MAP_GPIO_enableInterrupt(BMP2);

    MAP_GPIO_enableInterrupt(BMP3);

    MAP_GPIO_enableInterrupt(BMP4);

    MAP_GPIO_enableInterrupt(BMP5);

    MAP_GPIO_interruptEdgeSelect(BMP0,GPIO_HIGH_TO_LOW_TRANSITION);

    MAP_GPIO_interruptEdgeSelect(BMP1,GPIO_HIGH_TO_LOW_TRANSITION);

    MAP_GPIO_interruptEdgeSelect(BMP2,GPIO_HIGH_TO_LOW_TRANSITION);

    MAP_GPIO_interruptEdgeSelect(BMP3,GPIO_HIGH_TO_LOW_TRANSITION);

    MAP_GPIO_interruptEdgeSelect(BMP4,GPIO_HIGH_TO_LOW_TRANSITION);

    MAP_GPIO_interruptEdgeSelect(BMP5,GPIO_HIGH_TO_LOW_TRANSITION);

    Interrupt_enableInterrupt(INT_PORT4);

    /* Declare local variables if needed */

    /* Call the initialization grading macro */

    MACRO_LAB3_INIT();

    while(1)

    {

        /* Design a Polling process to detect PushButtons press and turn on or off LED1 accordingly */

        if (MAP_GPIO_getInputPinValue(BTN1) == GPIO_INPUT_PIN_LOW || MAP_GPIO_getInputPinValue(BTN2) == GPIO_INPUT_PIN_LOW)

        {

            MAP_GPIO_setOutputHighOnPin(LED1);

        }

        else

        {

            MAP_GPIO_setOutputLowOnPin(LED1);

        }

            /* Note: Call the event grading macro after turning on LED1 */

            MACRO_LAB3_EVENT();

    }

}

/* Interrupt Service Routine for PORT4 to handle Bump Sensors */

void PORT4_IRQHandler(void)

{

    /* Check the interrupt status */

    uint32_t status;

    status = MAP_GPIO_getEnabledInterruptStatus(GPIO_PORT_P4);

    /* verify that the interrupt is triggered by P4.0 or P4.7 */

    if (status & GPIO_PIN0 != 0 || status & GPIO_PIN7 != 0)

    {

        /* Change the color of LED2 to RED */

        GPIO_setOutputHighOnPin(GPIO_PORT_P2,GPIO_PIN0); // red on

        GPIO_setOutputLowOnPin(GPIO_PORT_P2,GPIO_PIN1); // green off

        GPIO_setOutputLowOnPin(GPIO_PORT_P2,GPIO_PIN2); // blue off

        // call the grading macro here when generating the grading outputs:

        MACRO_LAB3_EVENT(); //

    }

    /* verify that the interrupt is triggered by P4.2 or P4.6 */

    else if (status & GPIO_PIN2 != 0|| status & GPIO_PIN6 != 0)

    {

        /* Change the color of LED2 to GREEN */

        GPIO_setOutputLowOnPin(GPIO_PORT_P2,GPIO_PIN0); // red off

        GPIO_setOutputHighOnPin(GPIO_PORT_P2,GPIO_PIN1); // green on

        GPIO_setOutputLowOnPin(GPIO_PORT_P2,GPIO_PIN2); // blue off

        // call the grading macro here when generating the grading outputs:

        MACRO_LAB3_EVENT();

    }

    /* verify that the interrupt is triggered by P4.3 or P4.5 */

    else if (status & GPIO_PIN3 != 0|| status & GPIO_PIN5 != 0)

    {

        /* Change the color of LED2 to BLUE */

        GPIO_setOutputLowOnPin(GPIO_PORT_P2,GPIO_PIN0); // red off

        GPIO_setOutputLowOnPin(GPIO_PORT_P2,GPIO_PIN1); // green off

        GPIO_setOutputHighOnPin(GPIO_PORT_P2,GPIO_PIN2); // blue on

        // call the grading macro here when generating the grading outputs:

        MACRO_LAB3_EVENT();

    }

    /* Clear the PORT4 interrupt flag */

    MAP_GPIO_clearInterruptFlag(GPIO_PORT_P4, status);

}

****************************************************************************************************

When I run "Build" this is what I get:

**** Build of configuration Debug for project lab3 ****

/Applications/ti/ccs1000/ccs/utils/bin/gmake -k -j 7 all -O 

 

Building file: "../MSP432P4xx/aes256.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/aes256.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/aes256.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/aes256.obj' failed

"../MSP432P4xx/aes256.c", line 37: fatal error #1965: cannot open source file "aes256.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/aes256.c".

Compilation terminated.

gmake: *** [MSP432P4xx/aes256.obj] Error 1

"../MSP432P4xx/comp_e.c", line 37: fatal error #1965: cannot open source file "comp_e.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/comp_e.c".

Compilation terminated.

gmake: *** [MSP432P4xx/comp_e.obj] Error 1

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

1 catastrophic error detected in the compilation of "../main.c".

Compilation terminated.

gmake: *** [main.obj] Error 1

"../MSP432P4xx/adc14.c", line 42: fatal error #1965: cannot open source file "adc14.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/adc14.c".

Compilation terminated.

gmake: *** [MSP432P4xx/adc14.obj] Error 1

"../MSP432P4xx/cpu.c", line 37: fatal error #1965: cannot open source file "cpu.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/cpu.c".

Compilation terminated.

gmake: *** [MSP432P4xx/cpu.obj] Error 1

"../MSP432P4xx/cs.c", line 41: fatal error #1965: cannot open source file "cs.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/cs.c".

Compilation terminated.

gmake: *** [MSP432P4xx/cs.obj] Error 1

"../MSP432P4xx/dma.c", line 39: fatal error #1965: cannot open source file "debug.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/dma.c".

Compilation terminated.

gmake: *** [MSP432P4xx/dma.obj] Error 1

"../MSP432P4xx/flash.c", line 41: fatal error #1965: cannot open source file "flash.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/flash.c".

Compilation terminated.

gmake: *** [MSP432P4xx/flash.obj] Error 1

"../MSP432P4xx/fpu.c", line 37: fatal error #1965: cannot open source file "fpu.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/fpu.c".

Compilation terminated.

gmake: *** [MSP432P4xx/fpu.obj] Error 1

"../MSP432P4xx/i2c.c", line 37: fatal error #1965: cannot open source file "i2c.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/i2c.c".

Compilation terminated.

gmake: *** [MSP432P4xx/i2c.obj] Error 1

"../MSP432P4xx/gpio.c", line 41: fatal error #1965: cannot open source file "gpio.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/gpio.c".

Compilation terminated.

gmake: *** [MSP432P4xx/gpio.obj] Error 1

"../MSP432P4xx/mpu.c", line 37: fatal error #1965: cannot open source file "debug.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/mpu.c".

Compilation terminated.

gmake: *** [MSP432P4xx/mpu.obj] Error 1

"../MSP432P4xx/interrupt.c", line 41: fatal error #1965: cannot open source file "debug.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/interrupt.c".

Compilation terminated.

gmake: *** [MSP432P4xx/interrupt.obj] Error 1

"../MSP432P4xx/pmap.c", line 37: fatal error #1965: cannot open source file "debug.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/pmap.c".

Compilation terminated.

gmake: *** [MSP432P4xx/pmap.obj] Error 1

"../MSP432P4xx/pcm.c", line 41: fatal error #1965: cannot open source file "pcm.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/pcm.c".

Compilation terminated.

gmake: *** [MSP432P4xx/pcm.obj] Error 1

"../MSP432P4xx/reset.c", line 37: fatal error #1965: cannot open source file "reset.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/reset.c".

Compilation terminated.

gmake: *** [MSP432P4xx/reset.obj] Error 1

"../MSP432P4xx/ref_a.c", line 37: fatal error #1965: cannot open source file "ref_a.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/ref_a.c".

Compilation terminated.

gmake: *** [MSP432P4xx/ref_a.obj] Error 1

"../MSP432P4xx/pss.c", line 41: fatal error #1965: cannot open source file "pss.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/pss.c".

Compilation terminated.

gmake: *** [MSP432P4xx/pss.obj] Error 1

"../MSP432P4xx/rtc_c.c", line 37: fatal error #1965: cannot open source file "rtc_c.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/rtc_c.c".

Compilation terminated.

gmake: *** [MSP432P4xx/rtc_c.obj] Error 1

"../MSP432P4xx/spi.c", line 37: fatal error #1965: cannot open source file "spi.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/spi.c".

Compilation terminated.

gmake: *** [MSP432P4xx/spi.obj] Error 1

Building file: "../MSP432P4xx/comp_e.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/comp_e.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/comp_e.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/comp_e.obj' failed

"../MSP432P4xx/systick.c", line 37: fatal error #1965: cannot open source file "debug.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/systick.c".

Compilation terminated.

gmake: *** [MSP432P4xx/systick.obj] Error 1

"../MSP432P4xx/timer32.c", line 37: fatal error #1965: cannot open source file "timer32.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/timer32.c".

Compilation terminated.

gmake: *** [MSP432P4xx/timer32.obj] Error 1

"../MSP432P4xx/sysctl.c", line 42: fatal error #1965: cannot open source file "sysctl.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/sysctl.c".

Compilation terminated.

gmake: *** [MSP432P4xx/sysctl.obj] Error 1

"../MSP432P4xx/timer_a.c", line 37: fatal error #1965: cannot open source file "timer_a.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/timer_a.c".

Compilation terminated.

gmake: *** [MSP432P4xx/timer_a.obj] Error 1

"../MSP432P4xx/uart.c", line 37: fatal error #1965: cannot open source file "uart.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/uart.c".

Compilation terminated.

gmake: *** [MSP432P4xx/uart.obj] Error 1

"../MSP432P4xx/wdt_a.c", line 41: fatal error #1965: cannot open source file "wdt_a.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/wdt_a.c".

Compilation terminated.

gmake: *** [MSP432P4xx/wdt_a.obj] Error 1

Building file: "../main.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw"  "../main.c"

 

>> Compilation failure

subdir_rules.mk:7: recipe for target 'main.obj' failed

Building file: "../MSP432P4xx/adc14.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/adc14.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/adc14.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/adc14.obj' failed

Building file: "../MSP432P4xx/cpu.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/cpu.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/cpu.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/cpu.obj' failed

Building file: "../MSP432P4xx/cs.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/cs.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/cs.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/cs.obj' failed

Building file: "../MSP432P4xx/dma.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/dma.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/dma.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/dma.obj' failed

Building file: "../MSP432P4xx/flash.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/flash.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/flash.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/flash.obj' failed

Building file: "../MSP432P4xx/fpu.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/fpu.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/fpu.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/fpu.obj' failed

"../MSP432P4xx/crc32.c", line 39: fatal error #1965: cannot open source file "debug.h"

1 catastrophic error detected in the compilation of "../MSP432P4xx/crc32.c".

Compilation terminated.

gmake: *** [MSP432P4xx/crc32.obj] Error 1

Building file: "../MSP432P4xx/i2c.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/i2c.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/i2c.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/i2c.obj' failed

Building file: "../MSP432P4xx/gpio.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/gpio.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/gpio.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/gpio.obj' failed

Building file: "../MSP432P4xx/mpu.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/mpu.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/mpu.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/mpu.obj' failed

Building file: "../MSP432P4xx/interrupt.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/interrupt.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/interrupt.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/interrupt.obj' failed

Building file: "../MSP432P4xx/pmap.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/pmap.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/pmap.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/pmap.obj' failed

Building file: "../MSP432P4xx/pcm.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/pcm.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/pcm.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/pcm.obj' failed

Building file: "../MSP432P4xx/reset.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/reset.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/reset.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/reset.obj' failed

Building file: "../MSP432P4xx/ref_a.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/ref_a.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/ref_a.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/ref_a.obj' failed

Building file: "../MSP432P4xx/pss.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/pss.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/pss.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/pss.obj' failed

Building file: "../MSP432P4xx/rtc_c.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/rtc_c.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/rtc_c.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/rtc_c.obj' failed

Building file: "../MSP432P4xx/spi.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/spi.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/spi.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/spi.obj' failed

Building file: "../MSP432P4xx/systick.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/systick.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/systick.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/systick.obj' failed

Building file: "../MSP432P4xx/timer32.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/timer32.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/timer32.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/timer32.obj' failed

Building file: "../MSP432P4xx/sysctl.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/sysctl.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/sysctl.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/sysctl.obj' failed

Building file: "../MSP432P4xx/timer_a.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/timer_a.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/timer_a.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/timer_a.obj' failed

Building file: "../MSP432P4xx/uart.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/uart.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/uart.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/uart.obj' failed

Building file: "../MSP432P4xx/wdt_a.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/wdt_a.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/wdt_a.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/wdt_a.obj' failed

Building file: "../MSP432P4xx/crc32.c"

Invoking: ARM Compiler

"/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include" --include_path="/Applications/ti/ccs1000/ccs/ccs_base/arm/include/CMSIS" --include_path="/Users/paolalondono/Desktop/lab3" --include_path="/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MSP432P4xx/crc32.d_raw" --obj_directory="MSP432P4xx"  "../MSP432P4xx/crc32.c"

 

>> Compilation failure

MSP432P4xx/subdir_rules.mk:7: recipe for target 'MSP432P4xx/crc32.obj' failed

gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hello,

    Are you using CCS? If so, it may be better to import an existing DriverLib project from TI Resource Explorer than trying to add everything manually.

  • Hi James! Thank you! I added the DriverLib from the TI Resource Explorer and now when I debug my code I still get the same message:

    CORTEX_M4_0: GEL: Encountered a problem loading file: /Users/paolalondono/Desktop/lab3/Debug/lab3.out Could not open file

    But when I press build, this is what I get now:

    **** Build of configuration Debug for project lab3 ****

    /Applications/ti/ccs1000/ccs/utils/bin/gmake -k -j 7 all -O 

     

    Building file: "../msp432_driverlib_3_21_00_05/packages/ti/mcu/msp432/driverlib/product/package/build.cfg"

    Invoking: XDCtools

    "/Applications/ti/ccs1000/xdctools_3_61_00_16_core/xs" --xdcpath= xdc.tools.configuro -o configPkg -r debug -c "/Applications/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS" "../msp432_driverlib_3_21_00_05/packages/ti/mcu/msp432/driverlib/product/package/build.cfg"

    msp432_driverlib_3_21_00_05/packages/ti/mcu/msp432/driverlib/product/package/subdir_rules.mk:10: recipe for target 'build-287776689-inproc' failed

    js: "/Applications/ti/ccs1000/xdctools_3_61_00_16_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: Error: no target named: please use -t, -b, or --cb

    gmake[1]: *** [build-287776689-inproc] Error 1

    gmake: *** [build-287776689] Error 2

    msp432_driverlib_3_21_00_05/packages/ti/mcu/msp432/driverlib/product/package/subdir_rules.mk:7: recipe for target 'build-287776689' failed

    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • I added the DriverLib from the TI Resource Explorer

    Can you describe how you did this?

    I tried to duplicate your issue but didn't get a build error. In CCS, I went to TI Resource Explorer > Software > SimpleLink MSP432P4 SDK (3.40.01.02) > Examples > Development Tools > MSP432P401R LaunchPad - Red 2.x (Red) > DriverLib and imported two projects into my workspace:

    • gpio_toggle_output_MSP_EXP432P401R_nortos_ccs
    • adc14_single_channel_temperature_sensor_MSP_EXP432P401R_nortos_ccs

    Both projects built without errors. Can you try this on your side before making any changes to the code?