|
1 | 1 | .. _mpu_test: |
2 | 2 |
|
3 | | -Memory Protection Unit (MPU) TEST |
4 | | -################################# |
| 3 | +Memory Protection Unit (MPU) Sample |
| 4 | +################################### |
5 | 5 |
|
6 | 6 | Overview |
7 | 7 | ******** |
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 |
9 | 9 | against the following security issues: |
10 | 10 |
|
11 | 11 | * Read at an address that is reserved in the memory map. |
@@ -46,10 +46,43 @@ Sample Output |
46 | 46 | .. code-block:: console |
47 | 47 |
|
48 | 48 | 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