Skip to content

tests: kernel: Test kernel.memory_protection.gap_filling fails on nrf5340dk_nrf5340_cpuapp #30253

@PerMac

Description

@PerMac

Describe the bug
Test from zephyr/tests/kernel/mem_protect/mem_protect fails on nrf5340dk_nrf5340_cpuapp.

To Reproduce
Steps to reproduce the behavior:

  1. have nrf5340dk_nrf5340_cpuapp
  2. go to zephyr dir
  3. run ./scripts/sanitycheck --device-testing -p nrf5340dk_nrf5340_cpuapp -T tests/kernel/mem_protect/mem_protect --device-serial /dev/ttyACM2 -v -v
  4. See error

Expected behavior
Test passes

Impact
Not clear

Logs and console output

*** Booting Zephyr OS build zephyr-v2.4.0-1784-g2ce570b03f97  ***
Running test suite memory_protection_test_suite
===================================================================
START - test_permission_inheritance
E: ***** MPU FAULT *****
E:   Data Access Violation
E:   MMFAR Address: 0x20001030
E: r0/a1:  0x00000000  r1/a2:  0x00000000  r2/a3:  0x00000001
E: r3/a4:  0x20001030 r12/ip:  0x00000765 r14/lr:  0x0000075d
E:  xpsr:  0x21000000
E: Faulting instruction address (r15/pc): 0x000007e4
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x20000750 (unknown)
Caught system error -- reason 0 1
fatal error expected as part of test case
PASS - test_permission_inheritance
===================================================================
START - test_inherit_resource_pool
PASS - test_inherit_resource_pool
===================================================================
START - test_mem_domain_setup
Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/mem_protect/mem_protect/src/mem_domain.c:51: test_mem_domain_setup: (num_rw_parts > 0 is false)
no free memory partitions
FAIL - test_mem_domain_setup
===================================================================
START - test_mem_domain_valid_access
E: ***** MPU FAULT *****
E:   Data Access Violation
E:   MMFAR Address: 0x0
E: r0/a1:  0x200011dc  r1/a2:  0x20000b38  r2/a3:  0x00000000
E: r3/a4:  0x20000bd4 r12/ip:  0x00000000 r14/lr:  0x0000be77
E:  xpsr:  0x61000000
E: Faulting instruction address (r15/pc): 0x0000b876
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x20000c00 (ztest_thread)
Caught system error -- reason 0 0
fatal error was unexpected, aborting

Environment (please complete the following information):

  • OS: Linux 18.04
  • Toolchain Zephyr SDK
  • Commit SHA or Version used: zephyr-v2.4.0-1784-g2ce570b03f97

Additional context
The test passes on pdk version of nrf53

Metadata

Metadata

Assignees

Labels

area: Kernelarea: TestsIssues related to a particular existing or missing testbugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFxpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions