How to debug with watchpoint in Keil μVision or IAR EWARM?

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

31 May 2021, 16:13

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”

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests