- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the optimizing process does a pretty good job...
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dana, you make me shudder!!! Hoping that you never made such experiences!!!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Be not afraid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I dind't realize there was so much drama attached to PSOC development!