Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Problem with Control register API

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Problem with Control register API
Moderator:
RKRM

Post Reply
Follow this topic



Problem with Control register API

antimatter posted on 20 Sep 2011 1:44 AM PST
Member
6 Forum Posts

I am doing this

uint8 temp;

temp= ControlReg_Read();

Where 'ControlReg' is a control register i named and initialized in TopDesign.cysch

In an Interrupt service routine .

Its giving  the error 

Error: L127 UNRESOLVED EXTERNAL SYMBOL SYMBOL:  ControlReg_Read MODULE:  C:\Users\Antimatter\Documents\PSoC Creator\Design02\Design02.cydsn\DP8051-Keil_Generic\Debug\main.OBJ (MAIN)

Someone please tell me the solution to this.




Re: Problem with Control register API

yliu posted on 20 Sep 2011 03:13 AM PST
Cypress Employee
29 Forum Posts

Hi,

Please check if the name of the "ControlReg" component that placed in your schematic is "Control_Reg_1" or something else other than ''ControlReg', in default, it is "Control_Reg_1",  please change the name to "ControlReg" that aligns with the API you used in the code.

Regards,

Roy



Re: Problem with Control register API

GecoGiallo posted on 28 Jun 2012 07:32 AM PST
Member
5 Forum Posts

Hi,

I have exactly the same problem. I've double-checked the names, changed the names. Nothing happening.

How can I fix ? This is quite urgent

 

Thank you

GianLuca

 



Re: Problem with Control register API

ImperfectSeven posted on 28 Jun 2012 07:41 AM PST
Top Contributor
77 Forum Posts

Would it be possible for you to upload the code you are having problems with?



Re: Problem with Control register API

GecoGiallo posted on 28 Jun 2012 08:15 AM PST
Member
5 Forum Posts

Here attached !

Thank you

GianLuca



Re: Problem with Control register API

GecoGiallo posted on 28 Jun 2012 08:17 AM PST
Member
5 Forum Posts


Re: Problem with Control register API

ImperfectSeven posted on 28 Jun 2012 08:30 AM PST
Top Contributor
77 Forum Posts

Try attaching a digital output pin ( Ports and Pins -> Digital Output Pin) to the TestReg output.



Re: Problem with Control register API

GecoGiallo posted on 28 Jun 2012 08:35 AM PST
Member
5 Forum Posts

In the original project (this is a simplified project) my RegControl output is connected to one input of an AND port, the other one input of the port is connected to a physical port pin (configured as digital input). The output of the AND is connected to a physical digital output. And it doesn't work.....

GianLuca

 



Re: Problem with Control register API

GecoGiallo posted on 28 Jun 2012 08:44 AM PST
Member
5 Forum Posts

Ok, my output MUST have a HW Connection.... sorry :-))))))



Re: Problem with Control register API

ImperfectSeven posted on 28 Jun 2012 08:45 AM PST
Top Contributor
77 Forum Posts

When I set it up as you described I don't get a compile time error. The only way I can replicate that error is by disconnecting something, I'm sure that isn't the problem on your end but it might be worth checking. Also, if your control reg has more than 1 output but you only have one output connected, that would cause this error.



Re: Problem with Control register API

ImperfectSeven posted on 28 Jun 2012 08:47 AM PST
Top Contributor
77 Forum Posts

Ahh, ok then. Glad you figured it out =)



Re: Problem with Control register API

Bob Marlowe posted on 28 Jun 2012 08:47 AM PST
Top Contributor
1768 Forum Posts

Yes, there's a message indicating that "unused parts of your design have been optimized out". Seems to be a truely comment from the fitter: it has optimized-out yout control-register.

 

Stay optimistic (optimizing)

Bob






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20