5 Replies Latest reply on Jul 30, 2011 4:56 PM by ckf

    Error while import new component to PSoC Creator

    tom.wei

      I have imported "Thermistor_Calc" to PSoC Creator CyComponentLibary.cyprj from "AN66477-PSoC35 Temperature Measurement with Thermistor" .

         

      Then I created my project and add the Thermistor_Calc component.  But there always has error while I built my project.  See below screenshots. And it is surprising that no any error notice while I built the origin AN66477 project. And the config window is differenct between them.

         

      Also, there is no Component Preview in Component Catalog. Seems it has not been imported successful. But I do not know why.  Anyone can help?

        • 1. Re: Error while import new component to PSoC Creator
          tom.wei

          Here is a complete screenshots with error description.  

          • 2. Re: Error while import new component to PSoC Creator
            gautam.das.g

            Hi WeiBiao,

               

             

               

            I think there is an issue with the way in which you are importing the Thermistor_Calc component.

               

            The project associated along with the AN has a cylib folder named Thermistor_Calc_v1_0.cylib. This cylib should be used to add dependency to the project which requires this component.

               

             

               

            Hence, in the project where you want to use the Thermistor_Clac Component go to Project > Dependencies

               

            The Dependencies dialog box opens. In the User Dependencies, click on New Entry.

               

            Now select Thermistor_Calc_v1_0 under Thermistor_Calc_v1_0.cylib folder.

               

            Click OK.

               

             

               

            Now the Component will appear in your component catalog in a new tab called CYRef under Thermistor folder. The snap shot below shows the Dependencies dialog box.

               

             

               

             

            • 3. Re: Error while import new component to PSoC Creator
              tom.wei

              Dear dasq:

                 

              It is great ! The error has been solved. Thanks!

                 

              But I do not know why other component can be import easily? No need to set the Dependencies? Like SGPIO or FanController?

              • 4. Re: Error while import new component to PSoC Creator
                gautam.das.g

                Hi WeiBiao,

                   

                 

                   

                I am not sure why in your case direct importing of the custom component resulted in an error.

                   

                 

                   

                In PSoC Creator, importing of component creates a local copy of the component in the project. This component can be modified.

                   

                When dependency is added to a component, the custom component can be used in the project, but cannopt be modified.

                • 5. Re: Error while import new component to PSoC Creator
                  ckf

                  WeiBiao,

                     

                  I think the answer to your question is when importing other components there is probably not an underlying dependent library, but I am not familiar with the SGPIO or FanController to be sure.

                     

                   

                     

                  If there is an underlying dependency for those projects, it might be that you already have those dependecies in your design?