Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > unable find resolve

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



unable find resolve
Moderator:
RKRM

Post Reply
Follow this topic



unable find resolve

vgy posted on 30 Sep 2012 1:32 AM PST
Top Contributor
133 Forum Posts

 

hi to all

here i am uploading a snapshot of the error i have encounterd which i am unable to resolve would anybody please show me a way.

 

Regards

Rajendra




Re: unable find resolve

Bob Marlowe posted on 30 Sep 2012 02:16 AM PST
Top Contributor
1768 Forum Posts

Just insert the lines

 

#define FALSE 0

#define TRUE !FALSE

 

Bob



Re: unable find resolve

vgy posted on 02 Oct 2012 01:55 AM PST
Top Contributor
133 Forum Posts

 again the same error



Re: unable find resolve

Bob Marlowe posted on 02 Oct 2012 03:02 AM PST
Top Contributor
1768 Forum Posts

Then please post your complete project here so that we all can have a look at.

To do so: in Creator go to

Build -> Clean Project

File -> Create workspace Bundle (minimal)

and then upload the resulting archieve here.

 

Bob

 



Re: unable find resolve

H L posted on 02 Oct 2012 05:01 AM PST
Top Contributor
679 Forum Posts

 Would the problem be the BOOL?

try adding the following at the beginning of your ,h file. See if that helps.

typedef bit BOOL;

 



Re: unable find resolve

Bob Marlowe posted on 02 Oct 2012 06:36 AM PST
Top Contributor
1768 Forum Posts

Too bad, I've overlooked it:

BOOL is not defined. Since in PSoC3 boolean vars could really be bits which only is working on 8051 cores you should take care of that.

Easiest can be a

typedef uint8 BOOL;

 

Bob



Re: unable find resolve

vgy posted on 02 Oct 2012 09:51 PM PST
Top Contributor
133 Forum Posts

 its working 

thank u Mr Bob and Mr lleung .  



Re: unable find resolve

hli posted on 03 Oct 2012 01:36 AM PST
Top Contributor
675 Forum Posts

For a PSoC5, it is much simpler:

#include <stdbool.h>
bool myValue=true;

and you are set.

(But this doesn't work for the PSoC3, the compiler doesn't know about such basic things :(



Re: unable find resolve

Bob Marlowe posted on 03 Oct 2012 03:12 AM PST
Top Contributor
1768 Forum Posts

@rajendra

You are always welcome, but please no "Mr."!

 

Bob



Re: unable find resolve

H L posted on 03 Oct 2012 03:43 AM PST
Top Contributor
679 Forum Posts

 Nice to hear your problem is solved. :-)






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20