Dedugging Feature problem

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

cross mob
AMSH_1344256
Level 1
Level 1

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
4 Replies
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
AMSH_1344256
Level 1
Level 1

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

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

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

   

 

   

Bob

0 Likes