Keil Logo Arm Logo

Technical Support

µVISION DEBUGGER: BREAKPOINTS IN MEMORY REGIONS


Information in this article applies to:

  • µVision Version 2.10 or higher

QUESTION

How do I define a breakpoint that stops program execution whenever my program writes to XDATA memory in the area X:0x1000-X:0x1FFF?

ANSWER

There are two good solutions to this kind of breakpoint.

  1. 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
    
  2. 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 ALSO

Last Reviewed: Saturday, July 09, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.