6 Replies Latest reply on Apr 1, 2014 12:18 AM by JoMe_264151

    PSoC 1 Designer 5.4 Delay

       Hello Everyone,


      I have tried adding the delay.h and delay.asm files to my project but when i try to include delay.h and use the commands and build my project I receive the error "cannot include source file "delay.h"; file not found"  I've tried following the steps from the followng page 




      but I am still having no luck.  Can someone help me?






      Mikey the D

        • 1. Re: PSoC 1 Designer 5.4 Delay

          Did you copy both files to your project folder where main.c is?


          Did you add the file to the project files?





          • 2. Re: PSoC 1 Designer 5.4 Delay

            If you do not put the files in default root project directory you can, in project settings,


            add search path to compiler and linker to inform them of location.




            Regards, Dana.

            • 3. Re: PSoC 1 Designer 5.4 Delay

              In workspace explorer you have to right-click on Source or Header-Files and select the files to include. That should do the job





              • 4. Re: PSoC 1 Designer 5.4 Delay

                I had to put the files into the project file and not in the original folder that the Project >> Add File directed me to.




                Thanks everyone I appreciate the help.







                • 5. Re: PSoC 1 Designer 5.4 Delay

                  Bob, I understand the add file method, but thought one can inform the


                  linker with an additional search path in settings to pick up anything in that


                  path. I tried that, does not seem to work ? Like in a case where one has to


                  add a lot of files, tedious to do it using "add".




                  Regards, Dana.

                  • 6. Re: PSoC 1 Designer 5.4 Delay

                    The linker does not work with your sources, but the debugger does. The project file has got the information which files (including path) participate on the project. The fact that a file resides in a folder that is declared as to be searched for files does not work for every step of the complete code-generation.


                    I would suggest to trust in the Workspace Explorer's listing which shows all the project files known and to add all new files exactly at this place. Problems can arise when the file lies not within the project path (or even on a network) since the linker has to be informed where the output file of the compile-step lies. That is the reason wy I usually copy those files althoug this is not very helpful for building up a common codebase.