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/MSP430FR2676: Error in CCS when build CAPTIVATE-BSWP firmware

Part Number: MSP430FR2676
Other Parts Discussed in Thread: CAPTIVATE-BSWP

Tool/software: Code Composer Studio

Hi TI,

I just getting start with the EVB - CAPTIVATE-BSWP. I have tried to build the project in CCS. However, there is some error. My steps are shown below. Is there anything wrong with my steps? 

(1) open the demo project in Design Center C:\ti\msp\CapTIvateDesignCenter_1.83.00.08\CapTIvateDesignCenter\example_projects\CaptivateDesignCenterWorkspace\TI_Examples\FR26

(2) "Project Save as", change to the other workspace and change the project name

(3) In the controller customizer, select "REGISTER_I2C" in the communication interface.

(4) Press "Generate Source code", "create new project" and saved in the default path c:\xxxx\src

(5) In the CCS, press Project/ Import CCS projects..

(6) In the selection of "Select search-directory", browse the folder

(7) Select project, then press "Finish"

(8) Press "Project/Clean", select "Start a build immediately" and press "clean" button

(9) Then I got the error below.

I found that in my project, there are some folders they have the same folder/file name e.g. in the folder ..FR2676_I2C_COMPARE5/demo_src/captivate and ../FR2676_I2C_COMPARE5/captivate . Why there are two set of captivate files? Which set will be used/compiled actually?

And there are 3 main.c files in the project. One is in the location: ..FR2676_I2C_COMPARE5/demo_src; the other is ..FR2676_I2C_COMPARE5/src; and one more is in ..FR2676_I2C_COMPARE5. Which files are actually used in the project?

I found that the new set of files will be generated in ../FR2676_I2C_COMPARE5/src when I select "Create new project" in the "Generate Source Code". However, if I want to change the configuration again, then I select "Update existing project", the files located in ..FR2676_I2C_COMPARE5 can be updated. I am very confused which files are really used when build? Thanks.

  • Hello Christy,

    It seems like the files are not getting generated correctly in the Design Center for some reason.  Can you try generating the source code into a clean directory different from the default? Please let me know if that builds properly for you.

    I generated code with the example project and was able to build in CCS without any errors.

  • Hello Eddie,

    Do you mean when I press  "Generate Source code", I should not choose "create new project", instead I should choose "Update existing project" ?

    I did the procedure below. But I found a problem when I try to import the project into CCS.

    (1) open the demo project in Design Center C:\ti\msp\CapTIvateDesignCenter_1.83.00.08\CapTIvateDesignCenter\example_projects\CaptivateDesignCenterWorkspace\TI_Examples\FR2676_CAPTIVATE_BSWP

    (2) "Project Save as", change to the other workspace and change the project name

    (3) Nothing is changed. Then press "Generate Source code", select "Update existing project"

    (4)  Demo_bin and demo_src are generated in the project.

    (5)  In the CCS, press Project/ Import CCS projects.

    However, the project cannot be selected.

    How can you generate code with the example project? Can you tell me your steps? Thanks.

    Best regards,

    Christy 

     

  • I write it wrongly on step (4). It should be : Demo_bin and demo_src are updated in the project.

  • Hello Christy,

    Please see the Captivate technology guide below.  The "Source code generation" section describes the process.

    http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/CapTIvate_Design_Center/latest/exports/docs/users_guide/html/CapTIvate_Technology_Guide_html/markdown/ch_designcenter.html

    My steps are:

    1. Import example project into Design Center.
    2. Double click the MSP430 Controller
    3. Select Generate Source Code
    4. Select "Create New Project"
    5. Change location to a different directory and click ok
    6. Import project in CCS(Project-->Import CCS Projects

  • Hi Eddie,

    I have tried to follow the guidance. However, I got some errors. Let me explain my steps in more details. 

    My steps are:

    1. Import example project into Design Center

    2. File/ Project Save As, C:\Users\RD-TEST\TI_Project\NewProject01

    You can see that the demo_bin and demo_src folders are already exist once it is saved.

    In the C:\Users\RD-TEST\TI_Project\NewProject01\demo_src:

    3. Select "Generate Source Code"

    4. Select "Create New Project"

    5. Save in the default path "C:\Users\RD-TEST\TI_Project\NewProject01\src", press "OK"

    One more folder "src" is generated. In this src folder, there are many folders which have the same name as in C:\Users\RD-TEST\TI_Project\NewProject01\demo_src.

    However, in the "demo_src" folder, there is a "demo" folder, but in the newly generated "src" folder, there is no "demo" folder.

    6. Launch CCS, select "File\Switch Workspace", change to C:\Users\RD-TEST\TI_Project.

    7. Import project in CCS (Project-->Import CCS Projects)

    There are two discovered projects. I don't know why as I have created one project only. Am I did something wrong when import?

    8. I selected "NewProject01", then press "Finish"

    9. Now, I can see more folders are added in the project, in the location C:\Users\RD-TEST\TI_Project\NewProject01.

    The name of these folders are the same as in the "src" and "demo_src" folders.

    10. Select "Project\Clean"

    This time, the error is:

    It is what I did to try to create a new project from a sample project. However, 3 sets of folders which have the same file names are generated during the process.

    They are located in C:\Users\RD-TEST\TI_Project\NewProject01, C:\Users\RD-TEST\TI_Project\NewProject01\demo_src, and C:\Users\RD-TEST\TI_Project\NewProject01\src.

    I am so confused that which set of folder I should use. Or any steps I did it wrongly? Thank you.

    Best regards,

    Christy