cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ Creator & Designer

DaSi_281136
New Contributor II

 I had a working project where I decided to change out a control register which I've done many times in the past.
For some reason I now get an "undefined reference" error when I try to write to it.
I've tried to clean and rebuild but no luck.
I've also defined the UDB as individial lines and as a bus but I get the same result.
Any ideas?

0 Likes
1 Solution
DaSi_281136
New Contributor II

 I figured it out.
The Demux component was being optimized out because I was using a "logic 0" component to drive its input.
Once I swapped out the logic 0 component for a control register it started working.

View solution in original post

0 Likes
7 Replies
DaSi_281136
New Contributor II

I'm not sure but it looks like the control reg component is being optimized out.
When I open Control_Reg_1.c all of the functions are greyed out.

0 Likes
DaSi_281136
New Contributor II

 I figured it out.
The Demux component was being optimized out because I was using a "logic 0" component to drive its input.
Once I swapped out the logic 0 component for a control register it started working.

View solution in original post

0 Likes
Bob_Marlowe
Expert II

Yes, the optimizing process does a pretty good job...

   

 

   

Bob

0 Likes
ETRO_SSN583
Esteemed Contributor

Actually it has finite limitations.

   

 

   

For example if trying to implement gate delays, or a chain of NOTs to

   

build an osc it will eliminate them. Clearly does not know what you intentioned.

   

Like a traffic cop at an intersection and you are trying to speed thru because

   

your femoral artery is ripped. Sometimes the best of intentions create the worst

   

possible results.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Expert II

Dana, you make me shudder!!! Hoping that you never made such experiences!!!

   

 

   

Bob

0 Likes
ETRO_SSN583
Esteemed Contributor

Be not afraid.

0 Likes
DaSi_281136
New Contributor II

I dind't realize there was so much drama attached to PSOC development!

0 Likes