Seven Tips for Debugging like a PRO: (5) Debug with Watchpoint

Scenario

-While debugging memory access status.

-While debugging parameters with unexpected changes.

Debug Tips

-Use watchpoint under debug mode in KEIL μVision or IAR EWARM.

  • Watchpoint stop the CPU when specified data access occurs and any specified expression becomes true.

KEIL μVision

-Must install Nu-Link Keil Driver

-“Ctrl+B” open Breakpoints window

-Supports “Access Break (A)”, “Execution Break (E)” and “Count”

KEIL μVision

IAR EWARM

-Must install Nu-Link IAR Driver

-Supports Data breakpoints with read and write access

-Supports Code breakpoints with the variable as a condition

- View -> Breakpoints window
 -> Right-click “New Breakpoint” -> choose “Code” or “Data”

IAR EWARM

本网站使用cookie作为与网站互动时识别浏览器之用,浏览本网站即表示您同意本网站对cookie的使用及相关隐私权政策
OK