Debug Problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 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.

0 Likes
1 Solution
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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

View solution in original post

0 Likes
19 Replies
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 while debugging i were struck with the problem shown image

0 Likes
Anonymous
Not applicable

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

Anonymous
Not applicable

 so what should i select 

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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

0 Likes
Anonymous
Not applicable

#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'.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

   

Bob

Anonymous
Not applicable

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

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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.

Anonymous
Not applicable

bundle ...

0 Likes
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable

 ziped bundle i am posting

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

Anonymous
Not applicable

 sir,

   

  i have mailed that file to your mail

0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

.. and here is the file

   

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

   

 

   

Bob

Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

Anonymous
Not applicable

 i am once again mailing the file to email

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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