zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.96k stars 6.67k forks source link

drivers: spi: spi_loopback: drivers.spi.nrf_fast fails #82120

Open katgiadla opened 18 hours ago

katgiadla commented 18 hours ago

Describe the bug Test tests/drivers/spi/spi_loopback/drivers.spi.nrf_fast fails.

Observed for nrf54h20dk@0.9.0/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 -s drivers.spi.nrf_fast -p nrf54h20dk@0.9.0/nrf54h20/cpuapp --device-testing --device-serial /dev/ttyACM0 -v --inline-logs --west-flash="--erase" --fixture spi_loopback
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output

*** Booting Zephyr OS build v4.0.0-837-gb88d0bf8c7ee ***
Running TESTSUITE spi_loopback
===================================================================
START - test_spi_loopback
I: SPI test on buffers TX/RX 0x2f0156a0/0x2f015680, frame size = 8
I: SPI test slow config
I: Start complete multiple
E: Buffer contents are different: 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
E:                            vs: 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

    Assertion failed at zephyr/tests/drivers/spi/spi_loopback/src/spi.c:145: spi_complete_multiple: (1 is true)
Buffer contents are different
 FAIL - test_spi_loopback in 0.048 seconds
===================================================================
TESTSUITE spi_loopback failed.

------ TESTSUITE SUMMARY START ------

SUITE FAIL -   0.00% [spi_loopback]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.048 seconds
 - FAIL - [spi_loopback.test_spi_loopback] duration = 0.048 seconds

------ TESTSUITE SUMMARY END ------

===================================================================
PROJECT EXECUTION FAILED

Environment (please complete the following information):

Additional information:

tbursztyka commented 9 hours ago

Just to make sure, I am not aware that SPI_MODE_LOOP is supported by nrf's controllers, so you did short both miso/mosi lines physically?