cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

Anonymous
Not applicable

When I converted my project form Creator 4.0to 4.1 Update1, it removed all the code that was in PROTECTED portions of component code.

Has this happened to anyone else??

0 Likes
Reply
6 Replies
Employee

This may be useful-

0 Likes
Reply
Employee

Can you provide us the project and steps to reproduce the issue

0 Likes
Reply
Anonymous
Not applicable

No, I am unable to provide my workspace.

I have components (uart, isr, spi) that have code in their respective _int files between #START and #END.

Upon the upgrade to 4.1 Updt1, all the code between these was removed.

I have dealt with this by cut and pasting back the code from a saved version.

Further, this has happened at random  builds - I have not been able to see a pattern.

It does not happen always with a clean build or partial build.

As I will be working and suddenly stuff that was working would stop.

Debuging will show this code is missing again.

0 Likes
Reply
Employee

Please check the Compiler optimization setting and "Synthesis Optimization Effort" in build setting for the concerned project  in Creator4.1 and Creator4.0

0 Likes
Reply
Anonymous
Not applicable

Both are set to Exhaustive.

0 Likes
Reply
Employee

Can you change the "Synthesis Optimization Effort" from Exhaustive to  other values in Creator4.1 and then see whether the portion between # defines is getting lost in optimizations or not.

Compiler optimization can also be changed to see the effect

0 Likes
Reply