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

tests: drivers: spi: dt_spec/drivers.spi.dt_spec and spi_loopback/drivers.spi.loopback BUS FAULT #72657

Closed
nordic-piks opened this issue May 13, 2024 · 3 comments · Fixed by #72928
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@nordic-piks
Copy link
Contributor

Describe the bug
The tests/drivers/spi/spi_loopback/drivers.spi.loopback and tests/drivers/spi/dt_spec/drivers.spi.dt_spec

Observed for

  • nrf54h20dk/nrf54h20/cpuapp

To Reproduce
Steps to reproduce the behavior:

  1. have nrf54h20dk/nrf54h20/cpuapp connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/drivers/spi -p nrf54h20dk/nrf54h20/cpuapp--device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior
Valid console output

Impact
Not clear

Logs and console output

E: ***** BUS FAULT *****
E:   Precise data bus error
E:   BFAR Address: 0x5f09502c
E: r0/a1:  0x00000008  r1/a2:  0x00000000  r2/a3:  0x5f095000
E: r3/a4:  0x0000002c r12/ip:  0x0e0acea1 r14/lr:  0x0e0a8d11
E:  xpsr:  0x69000000
E: Faulting instruction address (r15/pc): 0x0e0aceae
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x2f0112c8 (main)
E: Halting system

Environment (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.16.5
  • Commit SHA or Version used: v3.6.0-3753-gbe682e22e166
@nordic-piks nordic-piks added the bug The issue is a bug, or the PR is fixing a bug label May 13, 2024
@nordic-piks nordic-piks changed the title tests: drivers: spi: tests/drivers/spi/dt_spec/drivers.spi.dt_spec and tests/drivers/spi/spi_loopback/drivers.spi.loopback BUS FAULT tests: drivers: spi: dt_spec/drivers.spi.dt_spec and spi_loopback/drivers.spi.loopback BUS FAULT May 13, 2024
@nordic-piks
Copy link
Contributor Author

@e-rk There seems to be hypothesis that after #71989 this test fails (ie. adding in this test /delete-node/ &exmif; helps)

@e-rk
Copy link
Collaborator

e-rk commented May 13, 2024

This is because of lack of this commit: nrfconnect/sdk-zephyr@7ea6937
The commit is not suitable for upstream in this form and larger changes to the spi_dw.c will be needed.

@nordic-piks
Copy link
Contributor Author

The same for tests/drivers/spi/spi_slave/drivers.spi_slave.api for nrf54h20dk/nrf54h20/cpuapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants