Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPU FAULT in nvs test on nrf52840dk_nrf52840 #25701

Closed
markus-becker-tridonic-com opened this issue May 28, 2020 · 6 comments · Fixed by #25708
Closed

MPU FAULT in nvs test on nrf52840dk_nrf52840 #25701

markus-becker-tridonic-com opened this issue May 28, 2020 · 6 comments · Fixed by #25708
Assignees
Labels
area: Storage Storage subsystem area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx

Comments

@markus-becker-tridonic-com
Copy link
Contributor

Describe the bug

We are having issues with NVS on nrf52840dk_nrf52840.

The test tests/subsys/settings/functional/nvs fails with an MPU fault.

To Reproduce
Steps to reproduce the behavior:
./scripts/sanitycheck --device-testing --device-serial /dev/ttyACM0 -p nrf52840dk_nrf52840 -T tests/subsys/settings/functional/nvs

Output on UART:

*** Booting Zephyr OS build v2.3.0-rc1-353-g4653b4e63f88  ***
Running test suite settings_test_suite
===================================================================
starting test - test_clear_settings
PASS - test_clear_settings
===================================================================
starting test - test_support_rtn
PASS - test_support_rtn
===================================================================
starting test - test_register_and_loading
I: 8 Sectors of 4096 bytes
I: alloc wra: 0, ff0
I: data wra: 0, 0
E: ***** MPU FAULT *****
E:   Data Access Violation
E:   MMFAR Address: 0xf8000
E: r0/a1:  0x00100000  r1/a2:  0x00000000  r2/a3:  0x80000000
E: r3/a4:  0x4001e000 r12/ip:  0xffffffff r14/lr:  0x0000345b
E:  xpsr:  0x81000000
E: Faulting instruction address (r15/pc): 0x000034a2
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x2000030c (unknown)
E: Halting system

Expected behavior
No MPU fault.

Impact
Unusable NVS on nrf52840dk_nrf52840?

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr SDK,
  • Commit SHA or Version used: master 4653b4e

Additional context
NVS is used as storage backend for OpenThread.

@markus-becker-tridonic-com markus-becker-tridonic-com added the bug The issue is a bug, or the PR is fixing a bug label May 28, 2020
@carlescufi carlescufi added area: Storage Storage subsystem platform: nRF Nordic nRFx labels May 28, 2020
@ioannisg
Copy link
Member

@markus-becker-tridonic-com @nvlsianpu maybe this is because you need MPU to ALLOW FLASH WRITE, please check

@nvlsianpu
Copy link
Collaborator

nvlsianpu commented May 28, 2020

@markus-becker-tridonic-com As @ioannisg points need to use proper configuration for run it on HW boards. Will try to add a such here.

@markus-becker-tridonic-com
Copy link
Contributor Author

yes, the prj.conf in fcb and file are setting it.

nvlsianpu added a commit to nvlsianpu/zephyr that referenced this issue May 28, 2020
Added configuration which allows to run test-suite
on nrf52840dk_nrf52840 and nrf52dk_rf52832 boards.

fixes zephyrproject-rtos#25701

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
@nvlsianpu
Copy link
Collaborator

@markus-becker-tridonic-com here patch with proper configuration #25708

@nvlsianpu nvlsianpu added the area: Tests Issues related to a particular existing or missing test label May 28, 2020
@markus-becker-tridonic-com
Copy link
Contributor Author

#25708 fixes this.

@markus-becker-tridonic-com
Copy link
Contributor Author

thanks.

carlescufi pushed a commit that referenced this issue May 28, 2020
Added configuration which allows to run test-suite
on nrf52840dk_nrf52840 and nrf52dk_rf52832 boards.

fixes #25701

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
krip-tip pushed a commit to krip-tip/zephyr-local that referenced this issue May 30, 2020
Added configuration which allows to run test-suite
on nrf52840dk_nrf52840 and nrf52dk_rf52832 boards.

fixes zephyrproject-rtos#25701

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Storage Storage subsystem area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants