How to setup watchpoints to break when access data for target debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to setup watchpoints to break when access data for target debug

816 Views
isaotakashima
Contributor IV

I want to use watchpoints to break when access (read and/or write) data for target board debug.

IAR Systems EWARM supported this feature that "Set Data Breakpoint", KEIL MDK-ARM also supported that "Set access breakpoint".

I found the following description in 4 Known Issues and Workarounds of Kinetis Design Studio 3.2.0 Release Notes.

  • Conditional watchpoints and breakpoints: Conditional breakpoints and watchpoints, including those using ignore counts, do not work always.
    Workaround: do not use conditions for breakpoints and watchpoints, instead check for condition in the code and set a normal breakpoint.

Therefore I believe that KDS does not support watchpoints debugging to break when access (read and/or write) data.

Am I correct?

How about MCUxpresso? Is it support watchpoints debugging?

Please reply as soon as possible.

Best regards,

Takashima

0 Kudos
1 Reply

457 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Isao,

You are correct, this is a known issue in KDS, it is recommended to use normal breakpoints instead of conditional breakpoints or watchpoints. Regarding MCUXpresso, those limitations are not present on this IDE.


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos