How to debug with watchpoint in Keil μVision or IAR EWARM?
A
a_ziliu - Senior Member
, 2021年5月31日|
0
10773
0
Introduction:
(1) Use watchpoint under debug mode in Keil μVision or IAR EWARM.
(2) Watchpoint stops the CPU when a specified data access occurs and any specified expression becomes true.
Scenario:
(1) Debugging memory access status
(2) Debugging parameters with unexpected changes
Keil μVision:
(1) Must install Nu-Link Keil Driver
(2) “Ctrl+B” open Breakpoints window
(3) Supports “Access Break (A)”, “Execution Break (E)” and “Count”
IAR EWARM:
(1) Must install Nu-Link IAR Driver
(2) Supports Data breakpoints with read and write access
(3) Supports Code breakpoints with variable as a condition
(4) View -> Breakpoints window -> Right click “New Breakpoint” -> choose “Code” or “Data”