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: Mix code: Energia and ccsv7

Part Number: MSP432P401R
Other Parts Discussed in Thread: ENERGIA

Tool/software: Code Composer Studio

Hello,

I need to mix two projects, one in Energia, and other in ccsv7...

I dont know if its possible but i dont find how to do it.

I want to put together the two programs, send the PWM signal, wait, and measure voltage values (with analogRead) and display the data on the serial port (Serial.print). As in ccsv7 I can not find the way to show data by serial port, I need the code of Energia.

I would use one of two solutions:

-Mix both projects in one and be able to use the functions of Energia and ccsv7 in the same file. That is, I can use the Serial.print in ccsv7. (I've tried copying the Energia file's includes but I can not)

- Show by the serial port values read by the pin 5.4 ADC of the msp432 (all the code in ccsv7, since in ccsv7 if I am able to read the value of voltage but not show it by the serial port, although it is possible to say that these Values are not really what they are, they oscillate +0.2 Volts and with the code of Energia the values are much more exact)

  • J. Martin,

    It sounds like you are trying to add Energia code to a CCS project, but the easier way to merge C code and Energia code is to add the C code to the Energia sketch.

    Check out this post which shows how to add TivaWare code to an Energia sketch. It will be a little bit different for MSP432, but the same process should apply.

    Regards,

    Daniel Ogilvie

  • Daniel Ogilvie,

    I have seen the video and tried to pass the ccs code to Energia but is not able to build the code. I think to do it with msp432 there has to be something different that I am not able to know.

    I searched the Internet but I can not find anything else about passing ccs code to Energia in msp432 or msp430

    Regards
  • Currently there are two MSP432 packages in the Energia board manager. One is called "Energia MSP432 boards" and the other is "Energia EMT RED MSP432 boards". "Energia MSP432 boards" is the legacy packages that supports both RED and BLACK boards. This package works with CCS. The "Energia EMT RED MSP432 boards". which only supports the RED boards as the name implies currently has some issues with using it in CCS. If you have this package installed, then the work-around is to uninstall the "Energia EMT RED MSP432 boards" and install the "Energia MSP432 boards".

  • The two separate codes work correctly, putting them together gives me problems.
  • J Martin,

    Can you let us know which MSP432 package you have isntall in the Energia board manager?
  • Evan Wakefield,

    I had the "Energia MSP432 boards" because my msp432 is not RED
  • J Martin,

    I can't speak for Energia, but I know that in CCS7, the black launchpad is no longer recommended as it contains old, experimental, pre-released silicon that is no longer supported by our most up to date software. The recommendation here is to purchase the new launchpad (Red LaunchPad) and use that for development. This will help solve a lot of seemingly weird issues that you might see during development with the new software. 

    You can purchase a new one here: www.ti.com/.../msp-exp432p401r

  • I'm going to close this thread due to inactivity. Feel free to respond to reopen the thread if needed if you have another question on this topic.
  • No one has been able to respond to what I said on the thread.

    Only one person has answered me a little to what he said but it has not been valid because it does for another board (Tiva).

    What i want is this e2e.ti.com/.../1724393 but with msp432 and it seems that no one knows how to do it.
  • J. Martin,

    Your LaunchPad is black correct?

    As I understand it, you are trying to enable serial communcation from the device to a serial terminal. This can be done with this example:dev.ti.com/.../

    As I also understand, you are trying to add Energia into CCS7 correct? If so, what software do you want to use with it? The DriverLib or something else? CCS7 only supports the SimpleLink SDK, which houses the MSP432 DriverLib, but we only support the Red LaunchPads due to a number of improvements that we made on the silicon between the black launchpads (which hold experimental silicon) and the red launchpads (which hold production quality silicon).

    These answers will help narrow down the scope of what is being asked. Thanks! sorry we haven't been able to figure this out yet.