• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/03-Apr-2024-8648

CMakeLists.txtD03-Apr-2024190 85

README.rstD03-Apr-20241.1 KiB4328

prj.confD03-Apr-202437 21

sample.yamlD03-Apr-2024137 87

README.rst

1.. _debugmon-sample:
2
3Debug monitor
4#############
5
6Overview
7********
8
9The Debug Monitor sample shows a basic configuration of debug monitor feature.
10
11
12The source code shows how to:
13
14#. Configure registers to enable degugging in debug monitor mode
15#. Specify custom interrupt to be executed when entering a breakpoint
16
17.. _debugmon-sample-requirements:
18
19Requirements
20************
21
22Your board must:
23
24#. Support Debug Monitor feature (available on Cortex-M processors with the exception of Cortex-M0)
25#. Have an LED connected via a GPIO pin (these are called "User LEDs" on many of
26   Zephyr's :ref:`boards`).
27#. Have the LED configured using the ``led0`` devicetree alias.
28
29Building and Running
30********************
31
32Build and flash Debug Monitor as follows, changing ``reel_board`` for your board:
33
34.. zephyr-app-commands::
35   :zephyr-app: samples/subsys/debug/debugmon
36   :board: reel_board
37   :goals: build flash
38   :compact:
39
40After flashing the board enters a breakpoint and executes debug monitor exception code.
41The LED starts to blink, indicating that even though the processor spins in debug monitor
42interrupt, other higher priority interrupts continue to execute.
43