3 Replies Latest reply on Jun 27, 2016 7:36 AM by JoMe_264151

    CyLib.h not found and not being generated

      I'm trying to use the watchdog on the CY8C21434B in PSOC 5.4. I want to use the two functions CyWdtStart and CyWdtClear according to the System Reference Guide. 


      I notice these two functions are defined in CyLib.h. It is not clear at all if it is supposed to be located somewhere in the installation or if it is automatically generated. I cannot find it in the cypress installation directory and it is not being generated for my project. 


      Where can i find it or get it to generate ?

        • 1. Re: CyLib.h not found and not being generated

          Welcome in the forum!


          No need to #include anything except <project.h>. CyWdtStart() and CyWdtClear() are part of cyboot package and included automatically. See "System Reference Guide" from Creator's Help-menu.





          • 2. Re: CyLib.h not found and not being generated

            Thank you for your response.


            If it is part of the cyboot package and included automatically, why do you think these functions are reported as undeclared by the compiler when the project is built ?


            My current includes are


            #include <m8c.h>        // part specific constants and macros
            #include "PSoCAPI.h"    // PSoC API definitions for all User Modules
            #include "main.h" 


            If i add <project.h> the compiler complains it is not available. But i suspect by project.h you mean the "main.h".


            With the defines shown it reports CyWdtStart and CyWdtClear as undefined.


            There is something missing, the project has worked fine until i tried including anything from the cyboot package. I should add there are no defines in my project.h header and that the original project is more than 2 years old.

            • 3. Re: CyLib.h not found and not being generated

              You are here at PSoC Creator software forum, I overlooked your PSoC1 chip.


              The name of the function is M8C_ClearWDT().