Which files get changed? Only the .c / .h files in the generated source code folder? They might be changed when your schematic changed, and then changes in there can get lost.
Changes in any other files (e.g. your main.c) would warrant opening a support case with Cypress...
thank you for reply. I figured it out.
My changes in generated code were not in
/* `#START isr_1_intc` */
/* `#END` */
I though it is only a comment, but seems it also prevents this code from over writting.
Yes, you are right: those areas for inserting your code preserve what you have written into while the whole other area could be generated anew. This not only allows for re-naming a component but for updating to a newer version (when availlable) as well AND still preserving your code.
In my opinion altering generated files may carry a small risk an mainly are not portable to a different PSoC(3/4/5) model. This is the reason why I prefer the method of using
To keep everything in my own source-files.
I second Bob. Having own code in the generated source files seems to be OK, but there are still cases where it might get lost (e.g. renaming a component instance). Also, having it in your own files make source control easier.