Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Restarting Debugger

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



Restarting Debugger
Moderator:
JFMD

Post Reply
Follow this topic



Restarting Debugger

akagan posted on 30 Jan 2013 6:56 AM PST
Member
8 Forum Posts

I  have an irritating issue with PSoC Creator version 2.2 and PSoC5 running under Windows 7. When I am in one of the editors and want to proceed to debugging I click on the debug icon (looks like an ant) and the software does its own thing (compiling when necessary etc.) and then moves into the debug environment.  The problem is that maybe 60% of the time, it doesn't set the pointer/ProgramCounter to the first instruction in the main procedure, it simply opens a Disassembly tab and seems not to place the ProgramCounter anywhere, or maybe above the first line in the window (I can't tell- there is no yellow arrow). Although I am sure it is irrelevant, the first line in the debugger is:

0x00000000 <__cs3_interrupt_vector>:

 Trying to run results in indeterminate results. The only way is to click on the Reset icon (double rewind arrow) and sometimes you even need to do that twice. If you are in the disassembly window it will take you to the correct point, but still in the Disassembly tab.

I have tried to find any pattern as to when I invoke the debugger (like completely build before I start) but I can find no pattern to it.

Is anyone esle seeing this problem?

 

 




Re: Restarting Debugger

Bob Marlowe posted on 30 Jan 2013 08:26 AM PST
Top Contributor
1768 Forum Posts

Check the settings where the debugger will stop.

 

Bob



Re: Restarting Debugger

akagan posted on 30 Jan 2013 08:51 AM PST
Member
8 Forum Posts

there are no breakpoints set



Re: Restarting Debugger

Bob Marlowe posted on 30 Jan 2013 10:14 AM PST
Top Contributor
1768 Forum Posts

I am not talking about breakpoints! The debugger stops when you start it (smile) at a given location: Address 0 or first instruction in main. That is to give you time to set breakpoints or set variables before main() runs.

 

Bob



Re: Restarting Debugger

Bob Marlowe posted on 30 Jan 2013 10:16 AM PST
Top Contributor
1768 Forum Posts

Look at the setting for "At Run / Reset, run to"

 

Bob



Re: Restarting Debugger

akagan posted on 30 Jan 2013 11:58 AM PST
Member
8 Forum Posts

Firstly I would appreciate it if you could let me know where I find this " "At Run / Reset, run to"

Secondly, if it is a setting, how come it happens sometimes and other times not and why does the reset always take me to where I am expecting?



Re: Restarting Debugger

akagan posted on 30 Jan 2013 12:01 PM PST
Member
8 Forum Posts

Found the  "At Run / Reset, run to" and it is set to Main.

So my question remains. Why does is sometimes go to main and sometimes not?






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