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.

Unable to compile example projects from SimpliciTI in Code Composer 4.2.1.00004

Other Parts Discussed in Thread: SIMPLICITI

Hello,

I've been trying to compile a working SimpliciTI project for the past couple weeks. I could get non-SimpliciTI projects to upload just fine, but I have yet to get the wireless library to compile nicely. I've tried copying other projects over and resolving the errors, creating a new project and setting all of the include/link requirements, and just about anything else I could think of.

*EDIT: This is being run on a 64bit Windows 7 Laptop with admin compatibility given to Code Composer.

So to get to the exact problem, I reinstalled the Platinum version of Code Composer 4.2.1.00004 and reinstalled SimpliciTI 1.1.1 for CCS and then followed the instructions for uploading the Simple_Peer_to_Peer for the MSP430 eZ430-RF2500 example from "SimpliciTI Sample Application User's Guide.pdf". Code Composer didn't recognize any projects in the CCS subfolder, but no worries because it seems to be able to recreate the project settings if I just copied the Project folder into my workspace and place the Configuration folder inside the Project folder. This produces a project that has the main_LinkListen.c, SimpliciTI included files (I already did the DEV_ROOT workspace linked resource step). However even after clean and rebuild all it has 41 errors in compiling. The main culprit being bsp -- as my projects always get stuck on missing variable or macro definitions within bsp (probably from missing linked resources). Below are the first few errors:

"BSP_InitDrivers" has already been declared in the current scope C:/Texas Instruments/SimpliciTI-CCS-1.1.1/Components/bsp/boards/EZ430RF bsp_drivers.c line 59 1297724913381 3125

a declaration here must declare a parameter Accel/Components/bsp bsp.c line 56 1297724913378 3117

 

a declaration here must declare a parameter C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/include string.h line 37 1297724913370 3081

 

a declaration here must declare a parameter C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/include string.h line 39 1297724913371 3082

...about 30 of these missing declarations then errors that result from those errors
expected a ";" Accel/Components/bsp bsp.c line 57 1297724913378 3118
...more missing ";" and "{" from bsp files, then some mrfi errors
expression must have pointer-to-struct-or-union type C:/Texas Instruments/SimpliciTI-CCS-1.1.1/Components/mrfi/radios/family1 mrfi_radio.c line 542 1297724913377 3112
variable "mrfiPacket_t" is not a type name Accel/Components/mrfi mrfi.h line 154 1297724913375 3107
This is with everything freshly installed and my following the instructions in the Documentation step by step.

 

 

  • Hello,

    Matthew Seal said:
    Code Composer didn't recognize any projects in the CCS subfolder, but no worries because it seems to be able to recreate the project settings if I just copied the Project folder into my workspace and place the Configuration folder inside the Project folder.

    hmmm... I'm not too familiar with the SimpliciTI software but I suspect that it is required to leave the project folder in its original location. How are you copying the folder to your workspace? Just copy and paste from windows explorer? Then are you importing the project folder from your workspace (CCS detects it there but not in its original location?)

    ki 

  • I initially was importing the example projects. This would make them initially compile until I included BSP_Init() in my main function. However, for some reason when I go to import example projects Code Composer now never sees a valid project folder (I tried a fresh install to fix). I can select the folder (and parent folders) of the example but it never lists a valid importable project. I tried repairing SimpliciTI and moving the project folder elsewhere to import. However, placing the folder in the workspace seems to auto-reconstruct all of the project settings so I defaulted to that method. I had heard from another source at TI that not going through the import feature would break the links even though I couldn't find a difference in the project settings between the two methods (when both were working).

    I have a feeling this is part of the problem, but I've yet to have a program that compiles and links once I add BSP_Init() so it's hard to tell since it appears copying into the workspace does an automatic import.

  • Could you try using a new clean workspace? I think the import issue is either a corrupt project or corrupt workspace and since you tried reinstalling the SimpliciTI software with no success, we can see if using a new workspace will help.

     

  • Matthew, 

    It sounds like the project that you are trying to re-import already exists in the workspace. CCS (more correctly Eclipse) has usability issue where it will not show in import dialog any projects that already exist in the workspace (I.e. have the same name). It sounds like your project exists in your workspace already and just copying files around "resets" its settings. Ki's suggestion with trying a new workspace would most likely work around this issue as well. From File menu select Switch Workspace and select new directory. 

     

    martin

     

  • I restarted my workspace (that was a good idea I hadn't tried!) and now I can import the Project as "Project", but I still get a mess of errors following that:

    could not open source file "bsp_board_defs.h" Project/Components/bsp bsp.h line 46 1298063106590 3228

     

    could not open source file "bsp.h" Project/Applications/application/LinkTo main_LinkTo.c line 36 1298063106590 3229

    ...more can't open bsp.h
    Now I've tried before at this step to specifically include or copy the bsp_board_defs.h into the project, but that always resulted in undefined function pointers of BSP_Init() and the board_defs version of that function or as macro definition errors. Normally I just find what's missing in a project and link it in, but this approach did not work for the SimpliciTi project and I'm not sure as to why.
    -Matt

     

  • Matthew,

    I know this is going to sound like I'm suggesting that you go full circle to square one.  But, that is exactly what I'm asking you to do.

    My first suggestion is to rather than clean, clear and otherwise cleanse the workspace you are using, install the SimpliciTI software on your PC into a known, clean area.

    Then copy the <SIMPLICITI_INSTALL_DIR> to another working directory.  Why?  Because you will have 2 copies of the SimpliciTI software installation.  One that is unadulterated and one that will be the working copy.  This allows you to modify, corrupt and break the working copy and give you an opportunity to delete it and start again by re-copying the original.

    Open up the SimpliciTI Sample Applications User's Guide.pdf that is found in the <SIMPLICITI_INSTALL_DIR>\Documents directory and go to Section 2.3.2 on page 16.  Follow these instructions.

    When you select the workspace by following the instructions, use the "working area" version of the SimpliciTI Software package and not your unadulterated copy.

     

    I have just gone through these steps with the Peer-to-Peer sample application and it built successfully with no errors or warnings.  I hope that you can quickly achieve the same results and get to what you really wanted to do when you started this process.

  • I tried the previous instructions: "My first suggestion is to rather than clean, clear and otherwise cleanse the workspace you are using, install the SimpliciTI software on your PC into a known, clean area." However this still doesn't compile following the instructions exactly. I end up with:

     

    "BSP_InitDrivers" has already been declared in the current scope C:/Users/Pyrce/My Files/Programming/Texas Instruments/SimpliciTI-CCS-1.1.1/Components/bsp/boards/eZ430RF bsp_drivers.c line 59 1298323145890 98

    a declaration here must declare a parameter C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/include string.h line 37 1298323145868 54
    a declaration here must declare a parameter C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/include string.h line 39 1298323145869 55
    and a bunch more errors in the string library, which is odd. But since the first error is in bsp_drivers that might just be a cascade effect.
    I'm going to be talking to Abhi later today, so perhaps he can resolve the issue with a live discussion.
    Thanks for the suggestions so far,
    -Matt

  • Hello Matt,

    Please visit the following link to the Application Note: Wireless Sensor Monitor Using the eZ430-RF2500 and download the corresponding ZIP file: http://www.ti.com/litv/zip/slaa378c

    The ZIP file contains project files for both Code Composer Studio (CCS) and IAR Embedded Workbench (IAR) within the Embedded folder. Please import into CCS by going to Project -> Import Existing CCS/CCE Eclipse Project. This Wireless Sensor Monitor Demo project is based on SimpliciTI and should allow you to develop your end application. Hope this approach helps resolve your issue.

    Best wishes,
    Abhi

  • Thanks Abhi,

    That solved the problem. The SimpliciTI files are correctly configured for my setup inside that project and it compiles/runs without changing any of the files.

    Thanks again,

    -Matt

  • I'm having the exact same problem and google helpfully pointed me this way. Unfortunately the links Abhi provided earlier now lead to 404, so couldn't get them to open and none of the previous answers, while providing some insight, worked either.

     

    Any help would be highly appreciated.

  • Antti Savolainen said:
    Unfortunately the links Abhi provided earlier now lead to 404, so couldn't get them to open

    The Wireless sensor monitor using eZ430-RF2500 app note can be accessed here. Projects and source code discussed in the ap note can be downloaded from http://www.ti.com/lit/zip/slac139