10 Replies Latest reply on Oct 31, 2013 7:11 PM by user_14586677

    Error Building Project First Run

    christopher.hudy

       Starting MAKE...

         

      creating project.mk 

         

      name translation failed on C:/Program\ Files\ (x86)/Cypress/PSOCDE~1/5.4/Common/CY110F~1 - 3

         

      name translation failed on C:\Program - 2

         

      name translation failed on Files - 2

         

      name translation failed on (x86)\Cypress\PSOCDE~1\5.4\Common\CY110F~1\tools\include\CY8C29~1 - 3

         

      CAUTION there are no library files

         

      extra file name "-D_M8C" encountered

         

      !E: cannot open output file "(x86)\Cypress\PSOCDE~1\5.4\Common\CY110F~1\tools\icppw.exe"

         

      !E: cannot load source file "Files"; file not found

         

      make: *** [obj/main.o] Error 1

        • 1. Re: Error Building Project First Run
          christopher.hudy

          For further clarification. This is my first project build for the new 5.4 PSoC Designer on a 64bit operating system. From what I heard it is now compatible with a 64bit operating OS. Not sure if this error is relevant to this, but it might be.

             

          -Chris

          • 2. Re: Error Building Project First Run
            user_1377889

            Solution to be found at end of this thread http://www.cypress.com/?app=forum&id=1573&rID=86197

               

             

               

            Happy regedit.

               

            Bob

            • 3. Re: Error Building Project First Run
              christopher.hudy

               Thanks that fixed a part of the problem now im left with this:

                 

              Code:

                 

              //----------------------------------------------------------------------------

                 

              // C main line

                 

              //----------------------------------------------------------------------------

                 

               

                 

              #include <m8c.h>        // part specific constants and macros

                 

              #include "PSoCAPI.h"    // PSoC API definitions for all User Modules

                 

               

                 

              WORD ADCResult;

                 

               

                 

              void main(void)

                 

              {

                 

              M8C_EnableGInt ; // Uncomment this line to enable Global Interrupts

                 

              // Insert your main routine code here.

                 

               

                 

              PWM_Start(); // Start the PWM. 

                 

              PGA_Start(PGA_HIGHPOWER); // Start the PGA at high power

                 

              ADC_Start(ADC_HIGHPOWER); // Start the ADC at high power and start sampling

                 

              ADC_GetSamples(0); // Passing a zero to this function runs the ADC in continous sampling mode

                 

              LCD_Start(); // Start the LCD

                 

              LCD_Position(0,0);

                 

              LCD_PrCString("VIN: "); // Print the label Vin on the first line of the LCD

                 

               

                 

              while(1)

                 

              {

                 

              while(!(ADC_fIsDataAvailable())); // Wait until the ADC is ready

                 

              ADCResult = ADC_iGetDataClearFlag(); // Read the ADC result

                 

              LCD_Position(0,5); // Print the ADC result on the LCD

                 

              LCD_PrHexInt(ADCResult)

                 

              }

                 
                      
                 
                  Output:   
                 
                  
                   Starting MAKE...    
                  
                   Environment values missing    
                  
                   make: *** [makemake] Error 3    
                  
                   CAUTION there are no library files    
                  
                   make: *** No rule to make target `project.mk', needed by `output/.rom'.  Stop.    
                  
                        
                  
                   EMVSirenDetector - 2 error(s) 0 warning(s) 15:49:45    
                 
              • 4. Re: Error Building Project First Run
                user_1377889

                And you really de- and re-installed Designer?

                   

                Are there any non-ASCII characters in your username?

                   

                 

                   

                Bob

                • 5. Re: Error Building Project First Run
                  christopher.hudy

                   Yes I uninstalled and reinstalled. Also the name of the project is called " EMVSirenDetector".

                  • 6. Re: Error Building Project First Run
                    user_14586677

                    You are missing the closing bracket for the while loop.

                       

                     

                       

                    "}"

                       

                     

                       

                    Regards, Dana.

                    • 7. Re: Error Building Project First Run
                      user_14586677

                      And -

                         

                       

                         

                      LCD_PrHexInt(ADCResult)

                         

                       

                         

                      should be changed to

                         

                       

                         

                      LCD_PrHexInt(ADCResult);

                         

                       

                         

                       

                         

                       

                         

                      Regards, Dana.

                      • 8. Re: Error Building Project First Run
                        christopher.hudy

                         Thanks Dana, but it seems as if that did not fix the problem I believe this is a software compatibility issue not anything code related because I'm getting errors relating to program files. Does anyone have this working for the 64bit operating system?

                           

                        Code:

                           

                        //----------------------------------------------------------------------------

                           

                        // C main line

                           

                        //----------------------------------------------------------------------------

                           

                         

                           

                        #include <m8c.h>        // part specific constants and macros

                           

                        #include "PSoCAPI.h"    // PSoC API definitions for all User Modules

                           

                         

                           

                        WORD ADCResult;

                           

                         

                           

                        void main(void)

                           

                        {

                           

                        M8C_EnableGInt ; // Uncomment this line to enable Global Interrupts

                           

                        // Insert your main routine code here.

                           

                         

                           

                        PWM_Start(); // Start the PWM. 

                           

                        PGA_Start(PGA_HIGHPOWER); // Start the PGA at high power

                           

                        ADC_Start(ADC_HIGHPOWER); // Start the ADC at high power and start sampling

                           

                        ADC_GetSamples(0); // Passing a zero to this function runs the ADC in continous sampling mode

                           

                        LCD_Start(); // Start the LCD

                           

                        LCD_Position(0,0);

                           

                        LCD_PrCString("VIN: "); // Print the label Vin on the first line of the LCD

                           

                         

                           

                        while(1)

                           

                        {

                           

                        while(!(ADC_fIsDataAvailable())); // Wait until the ADC is ready

                           

                        ADCResult = ADC_iGetDataClearFlag(); // Read the ADC result

                           

                        LCD_Position(0,5); // Print the ADC result on the LCD

                           

                        LCD_PrHexInt(ADCResult);

                           

                        }

                           

                        }

                           

                        Output:

                           

                        Starting MAKE...

                           

                        creating project.mk 

                           

                        name translation failed on C:/Program\ Files\ (x86)/Cypress/PSOCDE~1/5.4/Common/CY110F~1 - 3

                           

                        name translation failed on C:\Program - 2

                           

                        name translation failed on Files - 2

                           

                        name translation failed on (x86)\Cypress\PSOCDE~1\5.4\Common\CY110F~1\tools\include\CY8C29~1 - 3

                           

                        CAUTION there are no library files

                           

                        extra file name "-D_M8C" encountered

                           

                        !E: cannot open output file "(x86)\Cypress\PSOCDE~1\5.4\Common\CY110F~1\tools\icppw.exe"

                           

                        !E: cannot load source file "Files"; file not found

                           

                        make: *** [obj/main.o] Error 1

                           

                         

                           

                        EMVSirenDetector - 3 error(s) 0 warning(s) 18:10:31

                           
                                
                        • 9. Re: Error Building Project First Run
                          user_14586677

                          If you want I can try a compile under 32 bit to confirm. Just post an

                             

                          archive, "File", "Archive Project", post with IE or Firefox, Chrome

                             

                          has issues.

                             

                           

                             

                          Regards, Dana.

                          • 10. Re: Error Building Project First Run
                            user_14586677

                            Or post a tech case at for direct factory support -

                               

                             

                               

                            www.cypress.com

                               

                            “Support”

                               

                            “Technical Support”

                               

                            “Create a MyCase”

                               

                             

                               

                            Regards, Dana.