- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Is there a way to modify an existing component cy_lfclk?
I can import it on the components tab, I can change the code. But I can't figure out how to connect it to the project?
How to replace a component in a project with a modified one?
Solved! Go to Solution.
- Labels:
-
PSoC Creator & Designer Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @VaIk_2708246
Can you please check if you imported the same version of the cy_lfclk as used by you in the project?
In PSoC Creator, in workspace explorer right click on project and select Update components. Here, you can see the version of cy_lfclk used in the project.
Import the correct version of the cy_lfclk
I am attaching a project where I have made the same changes and shown in the images attached by you in the previous response. I can see the change in the generated source file as well.
I have followed the following steps:
1. Create a new project.
2. Check the version of the cy_lfclk in project and import the same version in the project.
3. Make changes in the component files present under the components tab
4. Build the project to create the generated source.
In case if you still see the issue, you can try skip code generation option as well.
Go to the Build Settings of the project, in the code generation section select skip code generation option to true. In this case you should be able to retain the changes you have made in the generated source of the project
Best Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After importing the the cy_lfclk component you can directly make changes in the cy_lfclk component files available under the components tab of the Workspace explorer
After making the changes, save the files and build the project.
In the generated source (under the source tab of workspace explorer) of the project you would notice that the changes you have just made are being reflected.
So, PSoC Creator will be using the updated files in the imported component.
Best Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, but it doesn't work for me. Therefore, this question arose. I imported the component cy_lfclk_v1_20, then edited CyLFClk.c, saved it and re-compiled the project. There are no such changes in the Generated_Source \ PSoC4 \ CyLFClk.c file. I attach pictures. There, for example, I commented out one line in the imported component, however, in the source generated after this, you can see that the line is uncommented.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @VaIk_2708246
Can you please check if you imported the same version of the cy_lfclk as used by you in the project?
In PSoC Creator, in workspace explorer right click on project and select Update components. Here, you can see the version of cy_lfclk used in the project.
Import the correct version of the cy_lfclk
I am attaching a project where I have made the same changes and shown in the images attached by you in the previous response. I can see the change in the generated source file as well.
I have followed the following steps:
1. Create a new project.
2. Check the version of the cy_lfclk in project and import the same version in the project.
3. Make changes in the component files present under the components tab
4. Build the project to create the generated source.
In case if you still see the issue, you can try skip code generation option as well.
Go to the Build Settings of the project, in the code generation section select skip code generation option to true. In this case you should be able to retain the changes you have made in the generated source of the project
Best Regards
Ekta