Undefined Reference

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
DaSi_281136
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

 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
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

 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
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

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
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

 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.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Be not afraid.

0 Likes
DaSi_281136
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

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

0 Likes