How to make the psoc5/psoc4 stop running, or start running

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

cross mob
Anonymous
Not applicable

During debugging I've set up the breakpoint.

   

When breakpoint is hit, after 1 sec or so, the chip continue execution, but psoc creator doesn't change the state.

   

This is the moment when Psoc Creator loose control over the chip forever.

   

I must connect to the chip again (yellow exclamation mark).

   

The same aplies to psoc4.

   

The same situation (brkpt hit) . When I hit  continue (F5) software refresh the window, but this doesn't affect the chip.

   

Chip don't receive run command at all. Even after 100 hits(F5)

   

The same with PSOC 4.

0 Likes
4 Replies
Anonymous
Not applicable

 There can be two different problem.

   

1. The chip runs after breakpoint, creator lose control:

   

Most possible a WD reset or the xres line or power glitch.

   

2. Cannot run after breakpoint.

   

That will happen if you have interrupt while breaking. So it exeute the interrupt and come back abd break at the same address.

   

You can disable the interrupt (there is a button on the toolbar) after breaking and it should stop and check what you need to do. Then you should re-enable the interrupt again then run again.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Are you falling thru main(0 in your code, not in a for(;;) or while( 1 ) loop ?

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

"Are you falling thru main(0 in your code, not in a for(;;) or while( 1 ) loop ?"

   

As I understood, You ask if I receive return from main.

   

When control is lost I don't know anything about the chip.

   

I can only start all over again. I'm not able to debug this state

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

You would not necessarily need to debug, just look at code to see if you

   

ever exit your infinite loop via a mistake in coding.

   

 

   

Regards, Dana.

0 Likes