You are here

How to keep changes in Generated Source files from reverting? Clean and Build causes files to revert. | Cypress Semiconductor

How to keep changes in Generated Source files from reverting? Clean and Build causes files to revert.

Summary: 3 Replies, Latest post by Bob Marlowe on 04 Nov 2016 05:27 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
Ed.Bathgate_1929351's picture
User
2 posts

Hi All

I am using PSOC creator 4, CY8CKIT-049-42xx  with the Mark Hastings Strip Light Controller example and having success getting it to work with my 8x8 serial led array, but I have to make changes to some of the "Generated Source" files, StripLights.c, and StripLights_fonts.c and I save the changes and files.  Then for unknown reasons, the files revert back to their original form discarding the changes I made to them.  How do I prevent this from happening?

I can force it to revert the files using the Build_ Clean and build.  It will always revert the files back to original state, breaking my fixes.

How do I change this behavior, or save the files in my new state?

 

 

 

user_1377889's picture
User
9583 posts

Welcome in the forum.

You would need to change the component's files from which the StripLights.c is generated. Thus you need the source of the component. Not a quite easy thing to do for a newbie, but doable.

 

Bob

Ed.Bathgate_1929351's picture
User
2 posts

Hi Bob.  Thanks for the advice.  I'll accept this as a sign that my LED learning experience is completed, document the changes and move on with capacitive sensing and A>D conversion, and PWM generation...   Lots of exploring to do yet with these little micros...

Cool picture of cat with mouse.  My wife and I have 3 of em. His cat, her cat, and the anybody pet me cat.

 

user_1377889's picture
User
9583 posts

If you can afford the money, I would suggest you to buy a CY8CKIT-043. It has the ability to debug your code. Leaving the -049 kit as what it is named: a prototyping kit, so you can solder it into the project.

 

Bob

PS: 7 cats, 3 dogs

 

Log in to post new comments.