Skip to content

Commit 17d64e0

Browse files
aasthagrnashif
authored andcommitted
samples: arch: mpu_test: Update Readme.
Update the readme for mpu_test sample to contain correct sample outputs for mpu read, write and run operations. Signed-off-by: Aastha Grover <[email protected]>
1 parent 741b9dc commit 17d64e0

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

samples/arch/mpu/mpu_test/README.rst

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.. _mpu_test:
22

3-
Memory Protection Unit (MPU) TEST
4-
#################################
3+
Memory Protection Unit (MPU) Sample
4+
###################################
55

66
Overview
77
********
8-
This test provides a set options to check the correct MPU configuration
8+
This application provides a set options to check the correct MPU configuration
99
against the following security issues:
1010

1111
* Read at an address that is reserved in the memory map.
@@ -46,10 +46,43 @@ Sample Output
4646
.. code-block:: console
4747
4848
uart:~$ mpu read
49-
***** BUS FAULT *****
50-
Precise data bus error
51-
BFAR Address: 0x24000000
52-
***** Hardware exception *****
53-
Current thread ID = 0x20000400
54-
Faulting instruction address = 0x80004a8
55-
Fatal fault in thread 0x20000400! Aborting.
49+
<err> os: ***** BUS FAULT *****
50+
<err> os: Precise data bus error
51+
<err> os: BFAR Address: 0x24000000
52+
<err> os: r0/a1: 0x00009a5c r1/a2: 0x00000008 r2/a3: 0x20001aa8
53+
<err> os: r3/a4: 0x24000000 r12/ip: 0x00000000 r14/lr: 0x000029b7
54+
<err> os: xpsr: 0x21000000
55+
<err> os: Faulting instruction address (r15/pc): 0x000003c8
56+
<err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
57+
<err> os: Current thread: 0x20000708 (shell_uart)
58+
<err> os: Halting system
59+
60+
61+
.. code-block:: console
62+
63+
uart:~$ mpu write
64+
write address: 0x4000
65+
<err> os: ***** MPU FAULT *****
66+
<err> os: Data Access Violation
67+
<err> os: MMFAR Address: 0x4000
68+
<err> os: r0/a1: 0x00000000 r1/a2: 0x0000000e r2/a3: 0x0badc0de
69+
<err> os: r3/a4: 0x00004000 r12/ip: 0x00000004 r14/lr: 0x000003ab
70+
<err> os: xpsr: 0x61000000
71+
<err> os: Faulting instruction address (r15/pc): 0x000003b2
72+
<err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
73+
<err> os: Current thread: 0x20000708 (shell_uart)
74+
<err> os: Halting system
75+
76+
77+
.. code-block:: console
78+
79+
uart:~$ mpu run
80+
<err> os: ***** MPU FAULT *****
81+
<err> os: Instruction Access Violation
82+
<err> os: r0/a1: 0x00009a5c r1/a2: 0x00000001 r2/a3: 0x20001aa8
83+
<err> os: r3/a4: 0x20000000 r12/ip: 0x00000000 r14/lr: 0x00006673
84+
<err> os: xpsr: 0x60000000
85+
<err> os: Faulting instruction address (r15/pc): 0x20000000
86+
<err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
87+
<err> os: Current thread: 0x20000708 (shell_uart)
88+
<err> os: Halting system

0 commit comments

Comments
 (0)