Building PSoC® Creator™ Projects Using Commands - KBA88205

Version: **

 

Question: How do you build PSoC® Creator™ (PSoC 3/4/5LP) projects using the command in command prompt?

 

Answer:

Follow these steps to compile your project using the command prompt.

  1.   Open a Command Prompt window.  
        
    1.     In Windows® XP, click Start and Run, and type cmd.exe.
    2.   
    3.     In Windows Vista and Windows 7, click Start, click All Programs, click Accessories, and double-click Command Prompt.
    4.  
  2.   Change the current directory to the folder containing the workspace file of the project. The syntax of command is: type command cd "path of the workspace file"—for example:
     

       cd "C:\Users\namn\Documents\PSoC Creator\TestLCD"

     

       Note: In this case the “TestLCD” folder contains the workspace file (TestLCD.cywrk).

  3.   To build the project, type this command:
     

       “[Path of installation folder of Creator]\[version of Creator]\PSoC Creator\bin\cyprjmgr.exe" -wrk "[workspace name]" - build

     
        
    1.     For 32-bit operating systems, the default path and command is:
         

           "C:\Program Files\Cypress\PSoC Creator\[version of Creator]\PSoC Creator\bin\cyprjmgr.exe" -wrk "[workspace name]" -build

        
    2.   
    3.     For 64-bit operating systems, the default path and command is:
         

           "C:\Program Files (x86)\Cypress\PSoC Creator\[version of Creator]\PSoC Creator\bin\cyprjmgr.exe" -wrk "[workspace name]" -build

         

           Note: Replace [version of Creator] with the version of Creator that you want to use for compiling, like 2.1 or 2.2.

         

           Replace the [workspace name] with the name of your workspace file—for example, the final command for a 64-bit system could be:

         

           "C:\Program Files (x86)\Cypress\PSoC Creator\2.1\PSoC Creator\bin\cyprjmgr.exe" -wrk "TestLCD.cywrk" -build

        
    4.  
  4.   To get further information on the parameters of the command line compilation, type this command:
     

       “[Path of installation folder of Creator]\[version of Creator]\PSoC Creator\bin\cyprjmgr.exe" -h

     

       For example, the final command for a 64-bit system could be:

     

       "C:\Program Files (x86)\Cypress\PSoC Creator\2.1\PSoC Creator\bin\cyprjmgr.exe" -h

Figure 1 shows the Command Prompt screen compiling the project.

Figure 1. Administrator: Command Prompt Screen