 | Technical Support |  |
|
|
Technical Support Support Resources Product Information | µVISION DEBUGGER: BREAKPOINTS IN MEMORY REGIONS
Information in this article applies to: - µVision Version 2.10 or higher
QUESTIONHow do I define a breakpoint that stops program execution whenever my program writes to XDATA memory in the area X:0x1000-X:0x1FFF? ANSWERThere are two good solutions to this kind of breakpoint. - You can specify address ranges for access breakpoints in the Debug - Breakpoints... dialog. You can define a breakpoint that stops when your program writes to the range X:0x1000-X:0x1FFF with the following inputs:
Expression: X:0x668
Count: 1
Command:
Access: Write, Size=4096 Bytes
- You may use the MAP command to specify that a memory range is unavailable for access. The µVision simulator tracks access rights for every memory location. You may define the memory area X:0x1000-X:0x1FFF as READ-ONLY using the following command:
MAP X:0x1000, X:0x1FFF READ
Whenever your program writes to this memory area, the debugger halts and displays the following message:
*** error 65: access violation at X:0xYYYY : no 'write' permission
MORE INFORMATION- Getting Started with µVision2 User's Guide, Chapter 5, Breakpoints
SEE ALSOLast Reviewed: Saturday, July 09, 2005
|
|