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/MSP432P401R: Problem with includes files

Part Number: MSP432P401R
Other Parts Discussed in Thread: ENERGIA

Tool/software: Code Composer Studio

Hello,

I want include ccs code in Energia sketch of ccs... I will try to explain what i want to do...

My code is simple. My code in Energia is the example AnalogReadSerial.

And now i want to add the following code:

_______________________________________________________________________

#include <xdc/std.h>
#include <xdc/runtime/System.h>


/* TI-RTOS Header files */
#include <ti/drivers/GPIO.h>
#include <ti/drivers/PWM.h>

/* Example/Board Header files */
#include "Board.h"

int main(void)
{
    Board_initGeneral();
    Board_initGPIO();
    Board_initPWM();


        PWM_Handle pwm1;
        PWM_Params params;
        uint16_t   pwmPeriod = 380;      // Period and duty in counts
        uint16_t   duty = pwmPeriod/2;
        PWM_Params_init(&params);
        params.dutyUnits = PWM_DUTY_COUNTS;
        params.dutyValue = duty;
        params.periodUnits = PWM_PERIOD_COUNTS;
        params.periodValue = pwmPeriod;
        pwm1 = PWM_open(Board_PWM0, &params);
        if (pwm1 == NULL) {
            System_abort("Board_PWM0 did not open");
        }
        PWM_start(pwm1);

}

___________________________________________________________________________

The ccs code is a PWM signal.

I am following a tutorial for the tivacode to Energia but not works with the msp432...

I have tried copying the ccs code in the one of Energia and changing the name of the main one by main_signal but it gives problems to the time to build by the libraries ....

I have tried in all possible ways to add code composer studio libraries to Energia and vice versa but there is no way it works

Thanks.