Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Debug Problem

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



Debug Problem
Moderator:
RKRM

Post Reply
Follow this topic



Debug Problem

vgy posted on 09 Sep 2012 3:42 AM PST
Top Contributor
133 Forum Posts

 hi to all,

              this is the first time i am using creater 2.0 after biulding of sam[ple program given in Getting started with Psoc , I am Encountered with the problem,. the image i am attaching below.




Re: Debug Problem

danaaknight posted on 09 Sep 2012 03:58 AM PST
Top Contributor
1773 Forum Posts

Some thoughts -

 

1) Does the board you are using have ES2 silicon on it ?

2) Is your project settings ES2 silicon ? It needs to match whatever the board is.

3) Your board have same project power settings ? Jumpers on board correct ?

4)  Using correct USB connector if -030 board ? See attached.

 

Regards, Dana.

 



Re: Debug Problem

vgy posted on 09 Sep 2012 04:14 AM PST
Top Contributor
133 Forum Posts

 while debugging i were struck with the problem shown image



Re: Debug Problem

srim posted on 09 Sep 2012 04:37 AM PST
Cypress Employee
121 Forum Posts

 I don't see any problem in the attached image. The PSoC3ES2 silicon is no longer supported for PC 2.0 or later. 

 



Re: Debug Problem

vgy posted on 09 Sep 2012 04:41 AM PST
Top Contributor
133 Forum Posts

 so what should i select 



Re: Debug Problem

hli posted on 09 Sep 2012 04:51 AM PST
Top Contributor
675 Forum Posts

You cannot debug this PSoC3 version with Creator 2.0 (or newer). But you can exchange you old kit with a new one: http://www.cypress.com/?rID=61994



Re: Debug Problem

vgy posted on 09 Sep 2012 04:55 AM PST
Top Contributor
133 Forum Posts

#include <device.h>

void main()

{

uint16 count;

/* Initialize the PWMs */

PWM_1_Init();

PWM_2_Init();

for(;;)

{

/* Toggle an LED ON/OFF */

if (count == 0)

{

LED4_Write(~LED4_ReadDataReg());

}

count++ ;

}

}

///////////////        THIS IS THE ERROR I AM GETTING     ///////////////////

---------------------------------------------------------------------------------------------------

WARNING: .\main.c:24: 'LED4_ReadDataReg': missing function-prototype

WARNING: .\main.c:24: 'LED4_Write': missing function-prototype

ERROR: .\main.c:24: 'LED4_Write': requires ANSI-style prototype The command 'c51.exe' failed with exit code '2'.



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 04:55 AM PST
Top Contributor
1768 Forum Posts

ES2 silicon is not supported for Creator 2.1(!!!) or later, 2.0 will run ES2. Sou you are doing right. Keep in mind NOT to update to Creator 2.1 as long as you use this development kit. There is an exchange parogram by Cypress to get an updated development kit if you bought it originally.

The debug window you showed us looks perfect. The program has stopped where the yellow arrow is. As I can see, there is not much code within your for-loop, so what are you expecting is going to happen?

 

Happy coding

Bob

 

 



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 04:56 AM PST
Top Contributor
1768 Forum Posts

Ooops, totally wrong post! Where's my head?

Bob

 



Re: Debug Problem

vgy posted on 09 Sep 2012 05:15 AM PST
Top Contributor
133 Forum Posts

The above said problem given in application note to toggle LEDs , where i went wrong , why  i am not getting reqiured output



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 05:51 AM PST
Top Contributor
1768 Forum Posts

This time a correct post:

I cannot see why you expect a LED4_Write() to work nor can I see why it shouldn't.

When there are problems with a project it is always advisable to post the complete project here so that we all can have a look at the complete settings etc.

to do so: Build -> Clean Project

File -> Create Workspace Bundle (minimal)

and then upload the resulting archieve here.

 

 



Re: Debug Problem

vgy posted on 09 Sep 2012 05:57 AM PST
Top Contributor
133 Forum Posts

bundle ...



Re: Debug Problem

vgy posted on 09 Sep 2012 06:09 AM PST
Top Contributor
133 Forum Posts


Re: Debug Problem

vgy posted on 09 Sep 2012 06:12 AM PST
Top Contributor
133 Forum Posts

 ziped bundle i am posting



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 06:45 AM PST
Top Contributor
1768 Forum Posts

Yea, we had that problem formerly. Mail that file directly to me and I will post it here on your behalf.

mailto: briefe@jmeiersoftware.de

 

Bob



Re: Debug Problem

vgy posted on 09 Sep 2012 07:30 AM PST
Top Contributor
133 Forum Posts

 sir,

  i have mailed that file to your mail

 



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 07:41 AM PST
Top Contributor
1768 Forum Posts

.. and here is the file

Sorry for the delay, my mailserver crashed again, I had to exchange the power-supply.

 

Bob



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 07:46 AM PST
Top Contributor
1768 Forum Posts

Well, I uploaded the file first, then I tried to open it. There is an error-message stating that the files are not complete. Did you really use "Create Workspacew Bundle" to get the archieve?

 

Bob



Re: Debug Problem

vgy posted on 09 Sep 2012 08:11 AM PST
Top Contributor
133 Forum Posts

 i am once again mailing the file to email



Re: Debug Problem

Bob Marlowe posted on 09 Sep 2012 10:51 AM PST
Top Contributor
1768 Forum Posts

Sorry, cannot handle email at this time, server has more headaches than only the powersupply. Can order a new one not before monday, will not get a new one before wednesday (cry!!!).

Someone else has to jump in please and accept the file to upload it here.

 

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