FAQ

Häufig gestellte Fragen

How to add a breakpoint to stop program execution in the Keil development environment when a register or an address in RAM is changed or read?  Datum:2015-09-09

Please follow the steps below to add a breakpoint in Debug mode:

  1. Use Ctrl+B to open the Breakpoints dialog box.
  2. Enter a register address or an address in RAM into the “Expression” field of the Breakpoints dialog box.
  3. Enable the “Read” or “Write” option, specify the “Size” as 4 for a register, and enable “Bytes” in the “Access” section.
  4. Click the “Define” button to add a new breakpoint.

 

Taking the M051 series for example, to see if the value of the UA_THR register of UART0 is written, follow the steps as shown in the figure below:

Note1: The “Count” setting could not be changed to control the hit count of breakpoints.

Note2: Up to two breakpoints can be set for a register.

Produkte: Mikrocontroller ,Arm Cortex-M0-MCUs ,M051-Base-Serie ,M0518-Serie ,M0519-Serie ,Mini51-Base-Serie ,Nano100/102-Base-Serie ,Nano110/112-LCD-Serie ,Nano120-USB-Serie ,Nano130-Advanced-Serie ,NUC029-Serie ,NUC100/200-Advanced-Serie ,NUC120/122/123/220-USB-Serie ,NUC130/230-CAN-Serie ,NUC131-NUC1311-CAN-Serie ,NUC140/240-Konnektivität-Serie ,Arm Cortex-M4-MCUs ,M451-Base-Serie ,M451M-Serie ,M452-USB-Serie ,M453-CAN-Serie ,NUC442/472-Serie ,NUC505-Serie
Applikationen:
Funktion: Software and Tools,Development-Environment,Keil
This website uses cookies to ensure you get the best experience on our website. Learn more
OK