Part 1
요약·해설
Cortex-M0 제외, led0 alias 요구 사항과 Debug Monitor execution 결과를 설명합니다.
Debug Monitor
Breakpoint
LED blink
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
D7280651F184F3993B8F9F7CD7EB84C7741DC8622AB816AC834ADCB2CA075E4A
.. _debugmon-sample:
Debug monitor
#############
Overview
********
The Debug Monitor sample shows a basic configuration of debug monitor feature.
The source code shows how to:
#. Configure registers to enable degugging in debug monitor mode
#. Specify custom interrupt to be executed when entering a breakpoint
.. _debugmon-sample-requirements:
Requirements
************
Your board must:
#. Support Debug Monitor feature (available on Cortex-M processors with the exception of Cortex-M0)
#. Have an LED connected via a GPIO pin (these are called "User LEDs" on many of
Zephyr's :ref:`boards`).
#. Have the LED configured using the ``led0`` devicetree alias.
Building and Running
********************
Build and flash Debug Monitor as follows, changing ``reel_board`` for your board:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/debug/debugmon
:board: reel_board
:goals: build flash
:compact:
After flashing the board enters a breakpoint and executes debug monitor exception code.
The LED starts to blink, indicating that even though the processor spins in debug monitor
interrupt, other higher priority interrupts continue to execute.
Part 3
한국어 전문 번역
개요
Arm Cortex-M Debug Monitor feature의 기본 configuration을 보여 주는 sample입니다.
Source code는 debug monitor mode에서 debugging을 enable하도록 register를 구성하는 방법과, breakpoint에 진입할 때 실행할 custom interrupt handler를 지정하는 방법을 보여 줍니다.
요구 사항
- Debug Monitor feature를 지원하는 board. Cortex-M processor에서 사용할 수 있지만 Cortex-M0는 제외됩니다.
- GPIO pin에 연결된 LED. 많은 Zephyr board에서 User LED라고 부릅니다.
- Devicetree의
led0alias로 구성된 LED.
빌드 및 실행
다음 command의 reel_board를 사용할 board target으로 바꾸어 build하고 flash합니다.
west build -b reel_board samples/subsys/debug/debugmon
west flash
Flash한 뒤 processor가 breakpoint에 진입해 Debug Monitor exception code를 실행합니다. Debug Monitor interrupt 안에서 processor가 loop를 돌더라도 더 높은 priority interrupt는 계속 실행될 수 있으므로 LED가 깜박입니다. 이 blink가 Debug Monitor handler가 모든 system interrupt를 막지 않는다는 관찰 증거입니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.