Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Very weird PSOC Creator problem

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



Very weird PSOC Creator problem
Moderator:
JFMD

Post Reply
Follow this topic



Very weird PSOC Creator problem

hjvanderlinden posted on 03 Apr 2012 3:56 AM PST
Member
5 Forum Posts

I have been fighting for about 10 hours now with a very weird problem in Creator that I got after splitting my code.

I wrote a function and header file to control an external DAC component. The DAC Write function is called from the initializer.c function which has a header file for the DAC function included. This should have worked as it did for other functions and header files I created.

My code stopped working and while I was checking this with the debugger I discovered the strangest thing: all the variables in the code (visible as you put the mouse pointer over the variable during a break state) are 0!!

If I put // in front of the function call to the DAC write the problem goes away and if I put it back it persists.

I have exhausted all my options and seriously believe there is some fundamental flaw either in Creator or in Eclipse.

Has somebody else seen this problem before and is there a solution for this problem?

Any help is very much appreciated!




Re: Very weird PSOC Creator problem

H L posted on 03 Apr 2012 04:14 AM PST
Top Contributor
679 Forum Posts

It would be easier if you can upload the project and we shall check. :-)



Re: Very weird PSOC Creator problem

hjvanderlinden posted on 03 Apr 2012 05:25 AM PST
Member
5 Forum Posts

Hi lleung,

 

Thanks!    What is the preferred way to share Creator Projects?

 

Heiko



Re: Very weird PSOC Creator problem

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

As my magic glass-bowl tells me, you are using a PSoC5 part and Creator (hopefully 2.0), so do the following:

"Build->Clean Project"

"File->Create Workspace Bundle(minimal)"

Then upload the -ZIP-File by entering the filename or selecting the file via the search function at the bottom of the reply-window.

 

Happy uploading

Bob

 



Re: Very weird PSOC Creator problem

hjvanderlinden posted on 03 Apr 2012 09:03 AM PST
Member
5 Forum Posts

 

Hi Bob,

Thanks for showing me how to make a workspace bundle! I have attached the file to this message.

 

An explanation to the code:

Line 47 in the function Initializer.c holds the line that causes all the problems. If this line is turned on and the code is

run till the first breakpoint the mouseover popup holding the variables all display 0. Also the mouseover does not work

like normally. I really need to click on the variable to force the popup to come up.

If line 47 is turned off the code functions normally...

 

Heiko

P.S.

Also I experienced something else: I have spent quite some time rebuilding the whole project in a new PSOC5 project.

At the end I wanted to turn on the -m function to allow <math.h> to be used but I am not allowed to access the build settings

:-s. Is it necessary to turn on the -m function at the start of creating a project?

 



Re: Very weird PSOC Creator problem

hjvanderlinden posted on 03 Apr 2012 09:17 AM PST
Member
5 Forum Posts

About the math.h option: I solved this by clicking on the project in the workplace explorer. This allows you to access build settings.



Re: Very weird PSOC Creator problem

Bob Marlowe posted on 03 Apr 2012 10:04 AM PST
Top Contributor
1768 Forum Posts

For the community: this is a double post and I started to answer in PSoCDeveloper Forum here: http://www.psocdeveloper.com/forums/viewtopic.php?f=43&t=8532 

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