aboutsummaryrefslogtreecommitdiff
path: root/doc/usage/cmd/panic.rst
blob: ba5ea626108c65ae3f6f90b3c8319d33da89003e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.. SPDX-License-Identifier: GPL-2.0+:

.. index::
   single: panic (command)

panic command
=============

Synopis
-------

::

    panic [message]

Description
-----------

Display a message and reset the board.

message
    text to be displayed

Examples
--------

::

    => panic 'Unrecoverable error'
    Unrecoverable error
    resetting ...

Configuration
-------------

If CONFIG_PANIC_HANG=y, the user has to reset the board manually.