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.

Grace source files excluded from build

Other Parts Discussed in Thread: MSP430G2203, MSP-FET

Windows 10 Pro 64-bit ; CCS 6.1.2.00015; MSP430G2203; MSP-FET

I am using Grace to set-up hardware. I have added some code to the Grace init source (in the prescribed locations) and for the InterruptVectors.c file. When I close CCS and re-open, the "src" folder and all Grace files are Excluded from build. Removing the Exclude from build is not retained from session to session. 

In addition, I have an "objs" folder under the "grace" folder. If that folder is NOT excluded from build and all Grace source files are included in build, then I get a linker error since there are two object files for each source name. 

What is the proper procedure to allow the Grace source files to build? Is there a preference setting to not exclude Grace source files? Should I delete the "objs" folder? Etc, etc?

Finally, do I need to be concerned that "makefile.defs" is Excluded from Build? (see below)

I will gladly review any Wiki pages you can link to on these subjects.

Thanks,

Jeff

  • Jeffrey Rockel said:
    When I close CCS and re-open, the "src" folder and all Grace files are Excluded from build. Removing the Exclude from build is not retained from session to session. 

    By default, the "src" folder is intended to be excluded from build. This exclusion is purely from the CCS project build process, The Grace source files are built separately into a library using a custom makefile, and the library is then linked in at the final CCS project link step.  If you make changes to those source files, they should still get rebuilt as part of the Grace makefile build.

    So the "src" folder and all the files within it do not (and really should not) need to be part of the CCS project build process. 

    Are you having any issues with the build process itself?

  • AartiG,

    I will admit that I am not proficient with the build process in all its details. I understand the concepts but not the details. I have not played much with the build of the Grace files since my first encounter with the Exclusion. But, I have user code in the files, especially the "InterruptVectors_init.c" since the interrupt service hooks are there as well. (I could move those hooks outside of the init file and this question would not have arisen.) But I'm trying to understand the programmer's mindset here. If the file is excluded and I modify the file, I would expect my changes to be excluded from the build. Furthermore, I don't remember the exclusion occurring in previous projects I have done using Grace. 

    So regarding the makefile, I have looked at "makefile.libs". This seems to be a file used by the overriding make file (that I can't locate) to show where the Grace files are. There is a "makefile" under the grace folder, but I would think this is excluded also if the entire "src" folder is excluded. Furthermore, in the "makefile" there is a clean: section to remove the "objs" folder and its contents. But this isn't happening either. 

    Finally, as I write this, I would like to refer back to my original post. But that is not visible on this page, nor is a link to it. I am finding this programmer's world very confusing compared to my hardware universe. ;-)

    Regards,

    Jeff

  • Jeff,

    Your questions will be best answered by the experts in the TI-RTOS forum, so I will move this thread to the TI-RTOS forum, so they can comment further.

  • Jeff,

    All Grace default project settings should generate the correctly built result.
    You should not be concerned with the "Exclude from build" setting.
    If you have changed any "Exclude" settings, I recommend that you change them back to their default.
    You should not be concerned that makefile.defs is excluded. It is still being used in the clean process.
    AartiG's initial response summed up the "Exclude" setting with regard to the build process nicely.

    Were you initially having any issues with the build process?

    Regards,
    Joe