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/MSP430F6736: SLAA517e

Part Number: MSP430F6736

Tool/software: Code Composer Studio

I'm trying to use a MSP430 as a emeter and for beggining I want to start using the SLAA517e example but I NEED to use Code Composer. Is there any project equals to slaa517e that I can use? I really need this.

  • Hi Vladson,

    You can use the same source files in the software provided in SLAA517e in CCS. Their may be some slight modifications in terms of compiler pragmas which I can help you with when you come across them. I would start by creating a new CCS project and adding the source files, then trying to build. I'm happy to help with any issues you may encounter.

    Best regards,
    Caleb Overbay
  • Caleb Overbay said:
    Hi Vladson,

    You can use the same source files in the software provided in SLAA517e in CCS. Their may be some slight modifications in terms of compiler pragmas which I can help you with when you come across them. I would start by creating a new CCS project and adding the source files, then trying to build. I'm happy to help with any issues you may encounter.

    Best regards,
    Caleb Overbay

    Caleb,

    Thanks for the reply. I did what you said, just added the files from SLAA517e in a new project and tried to build it. The compiler showed 3038, more than the error bar can show. What should I do? I have another project that my training supervisor gave to me that is basically the same thing I did, a IAR project copy-pasted on CCS, with just 32 errors, what is the difference between them?

  • Hi Vladson,

    Can you post a zipped version of the project on here? I can help take a look at some of the errors and see what I can do.

    Best regards,
    Caleb Overbay
  • Hi Vladson,

    I reviewed the code a little deeper. At first I did not realize the code was using many .s43 files which use syntax that is specific to IAR. The only way to convert these to CCS is by hand. I think the best option here is to simply use IAR instead of CCS for this project. Is there a particular reason you need to use CCS instead of IAR?

    Best regards,
    Caleb Overbay
  • Hi Caleb,

    So, this code is part of a project my training supervisor made and my work is to fix this erros and add some features not implemented yet. We're using the free license of both IDE and they just compile programs with a maximum size. IAR give less space than CCS, and our code need this extra size to work and he chose to try it on the freeware of CCS.

    Vladson Henrique.

  • Hi Vladson,

    Understood, unfortunately this is a very big task. There are actually two projects that need to be ported to CCS. The first is a library that is compiled and then used in the second project. A quick google search on how to generate a library with CCS will show you how to get a project setup correctly for this.

    The most difficult part is going to be porting the .s43 files. These are specific to IAR and need to be changed by hand. I don't have much experience with this type of format so I can't give much advice on what needs to change. Overall, the task of porting this code to CCS is a very significant effort. I'll keep my eye out for code that has already been made for CCS but to my knowledge there isn't any.

    Best regards,
    Caleb Overbay
  • Hi Caleb,

    Sorry for taking too long to reply. I used a s43 to asm conversor and I think it worked. Now, what should I do? I didn't understand how to convert this library, actually, I didn't find exactly what should I port to CCS.

    Taking into account that I have ported my s43 files properly, what do I need to do? Do I need to find in the code which parts this files are mentioned and change his extension? There's a way to make it simpler?

    Att.:
    Vladson Henrique.
  • Hi Vladson,

    Assuming you have converted all the .s43 files correctly there will still most likely be keywords that are specific to IAR in the code. This shouldn't be too hard to fix though. The first thing I would attempt is to build the library. As I stated previously, two projects need to be compiled; a library project and then the project that gets loaded onto the MSP430 that utilizes the library.

    Lets start with the library:

    1. If you follow the instructions in section 5.2.1 of SLAA517e you'll see that you need to import the IAR project emeter-toolkit-6736.ewp.
      1. I would start by doing this in IAR. Take note of which files are imported into the workspace.
    2. Now in CCS you'll need to create a new library project.
      1. This is done in CCS by navigating to Project --> New CCS Project .
      2. Setup the project according to your needs (e.g. device, project name, etc).
      3. Under the "Project Templates and Examples" tab select Empty Project.
      4. Then under the "Advanced Settings" tab select the output type to be a Static Library. Once you've done this, you can click finish.
    3. From here I would import the files you took note of in step 1. 
      1. For the .s43 files import the converted .asm files instead
    4. Build the project
    5. If there are any errors, take a screenshot and post to the forum. We'll work from this point after you post again. 

    Best regards, 
    Caleb Overbay

  • I did the same you said but I got stuck with some syntax errors, probably due to an incorrect conversion of s43 files

  • Hi Valdson,

    Our team is working on updating these files and we've recently ported the .s43 files to .asm format. Please see the attached zip file and let me know if you have any questions.

    ccs.zip

    Best regards,

    Caleb Overbay

  • Hi Caleb,

    First I want to apologize again for taking too long to respond.

    The file you sent me just contain 9 of 22 files that need to be converted. The following ziped file contain all the files that still need conversion. I'm trying to do this by myself using the already converted files as base, but it's being a task quite hard to me.

    iar.rar

    Att.: Vladson Henrique

  • Hi Vladson,

    The files I provided to you should be used as a blueprint for how to convert the rest of the files. This will need to be done manually. I would use a tool to study the differences between to the original and converted files. You should start to see a pattern and be able to quickly convert the rest.

    Best regards,
    Caleb Overbay
  • Hi Caleb,

    I've done most part of the conversion but I got stuck in one code that I couldn't find anything on the converted files you sent me to guide me.

    mul48.asm

    Can you convert it? One part of the code I knew I have to change but I don't know how.

     mul48(int32_t x, int16_t y)
        public mul48
        extern ?Mul32Hw
    
        .text       
    mul48

    Thanks for helping me,

    Att.: Vladson Henrique

  • Hi Caleb,

    I have found other problem on my conversion:

    .if ($defined(__MSP430_HAS_MPY__)  ||  $defined(__MSP430_HAS_MPY32__))

    I don't know how to do this "OR" operation in the .if $defined, can you help me with this?

  • Hi Vladson,

    I spoke with the team responsible for these files and they mentioned that they are not going to be using the mul48.asm file in the updated library. Instead you can find the most up-to-date files in the attached zip.

    Additionally, you should change the code from:

    .if ($defined(__MSP430_HAS_MPY__)  ||  $defined(__MSP430_HAS_MPY32__))

    to:

    .if $defined(__MSP430_HAS_MPY__)  |  $defined(__MSP430_HAS_MPY32__)

    3716.ccs.zip

    Best regards, 
    Caleb Overbay

**Attention** This is a public forum