I wrote a some code for LCD block as a new Custom Char. I wanna re-use this code, but if I insert a new component, when I Build program my personal definition go away. there is a method to save API generated with my personal code?
Solved! Go to Solution.
CrGa,
Modifying component code can be tricky and is generally not advisable for the reasons you state.
As Hari indicated, you can create your own LCD component by:
This should prevent your custom component from being updated by the Application Build phase.
If your using the Cypress LCD Character or LCD Segment components, there are GUI tabs to allow you to create custom characters or segment layouts.
Len
Hi CrGa_284461
Modifying the generated sources will result in PSoC creator overwriting it every time you build as you have mentioned. To make changes to the generated source, you have to import the current component and make a custom version for your application.
You can refer this KBA for details on how to create a custom component: Customizing a Component using PSoC Creator - KBA229139
Please let us know if you have any queries.
Thanks,
Hari
Thank's, for my tests it's a very good wiki.
CrGa,
Modifying component code can be tricky and is generally not advisable for the reasons you state.
As Hari indicated, you can create your own LCD component by:
This should prevent your custom component from being updated by the Application Build phase.
If your using the Cypress LCD Character or LCD Segment components, there are GUI tabs to allow you to create custom characters or segment layouts.
Len