Can you please check with other example project.
Please tell the complete version of PSoC Creator.
When we want to modify the code in component’s generated source file, steps has to be followed which was explained in this Link.
If we add any user defined library files then we have to do "clean and build" before programming.
Thanks for responding. Sorry it took so long to get back to you.
I have tried to replicate the issue on a simple sample project with no success.
I will keep trying to locate what causes the issue in my project and post here when/if I have more specific information.