cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor

Hello

   

 I want to use debugging feature using break point to check the values of variable used in my code. however when ever i am running code in debug mode Break point present will become watch point and my code is not halting at that point. also RUN and PAUSE is also not working. i think there is problem with debug feature setting kindly suggest. I am using Creator version 3.3.

   

 

   

thanks

0 Likes
Reply
4 Replies
Contributor II

Hi,

   

 

   

sometimes it depends on your optimization settings and other factors if breakpoints won't be recognized. Best way for us to reproduce your issue would be creation of a project archive as described here. Then post the archive here.

   

 

   

Regards,

   

 

   

Ralf

0 Likes
Reply
Esteemed Contributor II

At first set the optimization level for the compiler from "Debug" to "none" in project -> Build options.

   

Keep in mind that a breakpoint stops the CPU, but no hardware as timers which will keep on generating interrupts that will be served when running again. So it might look like an interrupt handler never gets completed. when single stepping an area of code, keep interrupts disabled, there is an icon on Creator's menu bar for that.

   

 

   

Bob

0 Likes
Reply
New Contributor

I am getting message on output window Error 'SWD error NACK' received while attempting to read memory location 0X....etc

0 Likes
Reply
Esteemed Contributor II

Are you using any power saving modes? Or really reading at locations where no memory is??

   

 

   

Bob

0 Likes
Reply