- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Question: Is there a way so that I can stop generating APIs for the components for which I do not want to use them?
Answer: | Yes. When you configure any component in PSoC Creator, you will find "Built-In" tab in configuration window. There is a parameter named “CY_SUPPRESS_API_GEN”. This will by default be assigned to false. If you do not want to use any of the APIs for this component and hence do not want to generate APIs for this component, you can set this value to true. This will suppress generate any APIs for the selected component. This is helpful to reduce flash memory consumption by the components.
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great tip,thanks! ..
This is exactly what I chanced upon recently,hunting for the reason behind high(almost 15%!) for even very simple starter level projects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi DASG,
I think a KB article about this would be useful, as many of them are not aware of this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi to all!
Does this means that it will only generate the API's that I use for a certain component or does it mean that it will not generate NO API's for the componet used?
What are the pro and cons in skipping generaton os APIs?
Thank all
Edgardo Ucha