FAQ

よくある質問

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?  日付: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.

製品: マイクロコントローラ ,Arm Cortex-M0 MCU ,M051 ベースシリーズ ,M0518シリーズ ,M0519シリーズ ,ミニ 51 ベースシリーズ ,ナノ 100/102 ベースシリーズ ,ナノ 110/112 LCD シリーズ ,ナノ 120 USB シリーズ ,ナノ 130 アドバンストシリーズ ,NUC029 シリーズ ,NUC100/200 アドバンストシリーズ ,NUC120/122/123/220 USB シリーズ ,NUC130/230 CAN シリーズ ,NUC131/NUC1311 CAN シリーズ ,NUC140/240 コネクティビティシリーズ ,Arm Cortex-M4 MCU ,M451 Base シリーズ ,M451M シリーズ ,M452 USB シリーズ ,M453 CAN シリーズ ,NUC442/472 シリーズ ,NUC505 シリーズ
アプリケーション:
機能: Software and Tools,Development-Environment,Keil
This website uses cookies to ensure you get the best experience on our website. Learn more
OK