Adding a Search Path in PSoC Designer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JeMe_288686
Level 1
Level 1

Hi,

   

PSoC Designer do not look in workspace directory by default for files (Designer 5.0 SP2)

   

How to add a search path in a PSoC Designer project to include a relative directory?

   

I have C source files and H header files located two directories above. (Where *.app is located, in workspace directory ?)

   

Best Regards,

   

jmer

0 Likes
2 Replies
Anonymous
Not applicable

Hi jmer,

   

I found an Application Note that might address your issue although it is not a 100% fit.

   

http://www.cypress.com/?docID=19345

   

This Application Note talks about the Project Structure. If you upgraded from Designer 4.4 to Designer 5.0, the project file structure is different as described in the AN

   

Hope this help, Robert

0 Likes
Anonymous
Not applicable

1) From the PSoC Designer IDE, do the following :

   

     Project -> Open local.mk for 'YourProjectName' Project

   

      This will open a text edit window for the file "local.mk"
2) Add the following lines to that file :

   

 

   

#------------------------------------------------

   

#
# Add to the include path the way PSoC Designer IDE manual says in section B.2.3.2
#
MY_INCLUDE_DIR= C:/whatever_your_directory_path_is
INCLUDE_PATH:=$(INCLUDE_PATH);$(MY_INCLUDE_DIR)
#
# Need to vpath the new include directory
#
vpath %.h $(MY_INCLUDE_DIR)

   

#------------------------------------------------

   

   

3) Do a "File -> Save All"

   

4) Do a "Build -> Generate/Build 'YourProjectName"

   

   

  That's it - your project can now include *.h files from an external directory.

   

best regards,

   

Tom Moxon

   

http://www.westmarkco.com
 

   

http://www.moxon.com

   


 

0 Likes