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

This website uses cookies to ensure you get the best experience on our website. Learn more
OK