Skip to content

tests: tests/drivers/spi/spi_loopback: frdm_mcxw71/mcxw716c: failed: Testsuite failed on test_spi_complete_loop_mode_2 #96708

@hakehuang

Description

@hakehuang

Describe the bug
below case are failed
drivers.spi.loopback.spi_loopback.spi_complete_loop_mode_0
drivers.spi.loopback.spi_loopback.spi_complete_loop_mode_2

test is failed on v4.2.0-4553-g7fc8051b0f4b on frdm_mcxw71/mcxw716c
testcase path is tests/drivers/spi/spi_loopback

see logs for details

To Reproduce
1.

scripts/twister -p frdm_mcxw71/mcxw716c  -T tests/drivers/spi/spi_loopback -s drivers.spi.loopback

or

# west twister -p frdm_mcxw71/mcxw716c -T tests/drivers/spi/spi_loopback -s drivers.spi.loopback
  1. See error
Testsuite failed

Expected behavior
test pass

Impact

Logs and console output

*** Booting Zephyr OS build v4.2.0-4553-g7fc8051b0f4b ***
SPI test on buffers TX/RX 0x30004400/0x300043e0, frame size = 8
Polling...Running TESTSUITE spi_extra_api_features
===================================================================
START - test_spi_hold_on_cs
 PASS - test_spi_hold_on_cs in 0.002 seconds
===================================================================
START - test_spi_lock_release
 PASS - test_spi_lock_release in 0.001 seconds
===================================================================
TESTSUITE spi_extra_api_features succeeded
Running TESTSUITE spi_extra_api_features
===================================================================
START - test_spi_hold_on_cs
 PASS - test_spi_hold_on_cs in 0.002 seconds
===================================================================
START - test_spi_lock_release
 PASS - test_spi_lock_release in 0.001 seconds
===================================================================
TESTSUITE spi_extra_api_features succeeded
Running TESTSUITE spi_loopback
===================================================================
Testing loopback spec: SLOW
START - test_nop_nil_bufs
 PASS - test_nop_nil_bufs in 0.001 seconds
===================================================================
START - test_spi_async_call
 PASS - test_spi_async_call in 0.127 seconds
===================================================================
START - test_spi_complete_large_transfers
 PASS - test_spi_complete_large_transfers in 0.125 seconds
===================================================================
START - test_spi_complete_loop_mode_0
Buffer contents are different:
 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
vs:
 0xb0,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
 FAIL - test_spi_complete_loop_mode_0 in 0.020 seconds
===================================================================
START - test_spi_complete_loop_mode_1
 PASS - test_spi_complete_loop_mode_1 in 0.001 seconds
===================================================================
START - test_spi_complete_loop_mode_2
Buffer contents are different:
 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
vs:
 0xb0,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
 FAIL - test_spi_complete_loop_mode_2 in 0.020 seconds
===================================================================
START - test_spi_complete_loop_mode_3
 PASS - test_spi_complete_loop_mode_3 in 0.001 seconds
===================================================================
START - test_spi_complete_multiple
 PASS - test_spi_complete_multiple in 0.001 seconds
===================================================================
START - test_spi_complete_multiple_timed
Transfer took 850 us vs theoretical minimum 864 us
Latency measurement: 0 us
 PASS - test_spi_complete_multiple_timed in 0.008 seconds
===================================================================
START - test_spi_concurrent_transfer_different_spec
 PASS - test_spi_concurrent_transfer_different_spec in 0.002 seconds
===================================================================
START - test_spi_concurrent_transfer_same_spec
 PASS - test_spi_concurrent_transfer_same_spec in 0.002 seconds
===================================================================
START - test_spi_deinit
  zephyr,user miso-gpios or mosi-gpios are not defined
 SKIP - test_spi_deinit in 0.005 seconds
===================================================================
START - test_spi_null_rx_buf_set
 PASS - test_spi_null_rx_buf_set in 0.001 seconds
===================================================================
START - test_spi_null_tx_buf
 PASS - test_spi_null_tx_buf in 0.001 seconds
===================================================================
START - test_spi_null_tx_buf_set
 PASS - test_spi_null_tx_buf_set in 0.001 seconds
===================================================================
START - test_spi_null_tx_rx_buf_set
 PASS - test_spi_null_tx_rx_buf_set in 0.001 seconds
===================================================================
START - test_spi_rx_bigger_than_tx
 PASS - test_spi_rx_bigger_than_tx in 0.001 seconds
===================================================================
START - test_spi_rx_every_4
 PASS - test_spi_rx_every_4 in 0.001 seconds
===================================================================
START - test_spi_rx_half_end
 PASS - test_spi_rx_half_end in 0.001 seconds
===================================================================
START - test_spi_rx_half_start
 PASS - test_spi_rx_half_start in 0.001 seconds
===================================================================
START - test_spi_same_buf_cmd
 PASS - test_spi_same_buf_cmd in 0.001 seconds
===================================================================
START - test_spi_word_size_16
 PASS - test_spi_word_size_16 in 0.001 seconds
===================================================================
START - test_spi_word_size_24
 PASS - test_spi_word_size_24 in 0.001 seconds
===================================================================
START - test_spi_word_size_32
 PASS - test_spi_word_size_32 in 0.001 seconds
===================================================================
START - test_spi_word_size_7
 PASS - test_spi_word_size_7 in 0.001 seconds
===================================================================
START - test_spi_word_size_9
 PASS - test_spi_word_size_9 in 0.001 seconds
===================================================================
START - test_spi_write_back
 PASS - test_spi_write_back in 0.001 seconds
===================================================================
TESTSUITE spi_loopback failed.
Running TESTSUITE spi_loopback
===================================================================
Testing loopback spec: FAST
START - test_nop_nil_bufs
 PASS - test_nop_nil_bufs in 0.001 seconds
===================================================================
START - test_spi_async_call
 PASS - test_spi_async_call in 0.013 seconds
===================================================================
START - test_spi_complete_large_transfers
 PASS - test_spi_complete_large_transfers in 0.012 seconds
===================================================================
START - test_spi_complete_loop_mode_0
Buffer contents are different:
 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
vs:
 0xb0,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
 FAIL - test_spi_complete_loop_mode_0 in 0.020 seconds
===================================================================
START - test_spi_complete_loop_mode_1
 PASS - test_spi_complete_loop_mode_1 in 0.001 seconds
===================================================================
START - test_spi_complete_loop_mode_2
Buffer contents are different:
 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
vs:
 0xb0,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66,0x2d,0x00,
 FAIL - test_spi_complete_loop_mode_2 in 0.020 seconds
===================================================================
START - test_spi_complete_loop_mode_3
 PASS - test_spi_complete_loop_mode_3 in 0.001 seconds
===================================================================
START - test_spi_complete_multiple
 PASS - test_spi_complete_multiple in 0.001 seconds
===================================================================
START - test_spi_complete_multiple_timed
Transfer took 93 us vs theoretical minimum 27 us
Latency measurement: 66 us
 PASS - test_spi_complete_multiple_timed in 0.007 seconds
===================================================================
START - test_spi_concurrent_transfer_different_spec
 PASS - test_spi_concurrent_transfer_different_spec in 0.001 seconds
===================================================================
START - test_spi_concurrent_transfer_same_spec
 PASS - test_spi_concurrent_transfer_same_spec in 0.001 seconds
===================================================================
START - test_spi_deinit
  zephyr,user miso-gpios or mosi-gpios are not defined
 SKIP - test_spi_deinit in 0.005 seconds
===================================================================
START - test_spi_null_rx_buf_set
 PASS - test_spi_null_rx_buf_set in 0.001 seconds
===================================================================
START - test_spi_null_tx_buf
 PASS - test_spi_null_tx_buf in 0.001 seconds
===================================================================
START - test_spi_null_tx_buf_set
 PASS - test_spi_null_tx_buf_set in 0.001 seconds
===================================================================
START - test_spi_null_tx_rx_buf_set
 PASS - test_spi_null_tx_rx_buf_set in 0.001 seconds
===================================================================
START - test_spi_rx_bigger_than_tx
 PASS - test_spi_rx_bigger_than_tx in 0.001 seconds
===================================================================
START - test_spi_rx_every_4
 PASS - test_spi_rx_every_4 in 0.001 seconds
===================================================================
START - test_spi_rx_half_end
 PASS - test_spi_rx_half_end in 0.001 seconds
===================================================================
START - test_spi_rx_half_start
 PASS - test_spi_rx_half_start in 0.001 seconds
===================================================================
START - test_spi_same_buf_cmd
 PASS - test_spi_same_buf_cmd in 0.001 seconds
===================================================================
START - test_spi_word_size_16
 PASS - test_spi_word_size_16 in 0.001 seconds
===================================================================
START - test_spi_word_size_24
 PASS - test_spi_word_size_24 in 0.001 seconds
===================================================================
START - test_spi_word_size_32
 PASS - test_spi_word_size_32 in 0.001 seconds
===================================================================
START - test_spi_word_size_7
 PASS - test_spi_word_size_7 in 0.001 seconds
===================================================================
START - test_spi_word_size_9
 PASS - test_spi_word_size_9 in 0.001 seconds
===================================================================
START - test_spi_write_back
 PASS - test_spi_write_back in 0.001 seconds
===================================================================
TESTSUITE spi_loopback failed.

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

SUITE PASS - 100.00% [spi_extra_api_features]: pass = 2, fail = 0, skip = 0, total = 2 duration = 0.003 seconds
 - PASS - [spi_extra_api_features.test_spi_hold_on_cs] duration = 0.002 seconds
 - PASS - [spi_extra_api_features.test_spi_lock_release] duration = 0.001 seconds

SUITE FAIL -  92.31% [spi_loopback]: pass = 24, fail = 2, skip = 1, total = 27 duration = 0.328 seconds
 - PASS - [spi_loopback.test_nop_nil_bufs] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_async_call] duration = 0.127 seconds
 - PASS - [spi_loopback.test_spi_complete_large_transfers] duration = 0.125 seconds
 - FAIL - [spi_loopback.test_spi_complete_loop_mode_0] duration = 0.020 seconds
 - PASS - [spi_loopback.test_spi_complete_loop_mode_1] duration = 0.001 seconds
 - FAIL - [spi_loopback.test_spi_complete_loop_mode_2] duration = 0.020 seconds
 - PASS - [spi_loopback.test_spi_complete_loop_mode_3] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_complete_multiple] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_complete_multiple_timed] duration = 0.008 seconds
 - PASS - [spi_loopback.test_spi_concurrent_transfer_different_spec] duration = 0.002 seconds
 - PASS - [spi_loopback.test_spi_concurrent_transfer_same_spec] duration = 0.002 seconds
 - SKIP - [spi_loopback.test_spi_deinit] duration = 0.005 seconds
 - PASS - [spi_loopback.test_spi_null_rx_buf_set] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_null_tx_buf] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_null_tx_buf_set] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_null_tx_rx_buf_set] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_rx_bigger_than_tx] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_rx_every_4] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_rx_half_end] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_rx_half_start] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_same_buf_cmd] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_word_size_16] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_word_size_24] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_word_size_32] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_word_size_7] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_word_size_9] duration = 0.001 seconds
 - PASS - [spi_loopback.test_spi_write_back] duration = 0.001 seconds

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

===================================================================
RunID: 89eaefab27b9374c5e6c8e8d27ad27e1
PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: (e.g. Linux ): posix
  • Toolchain (e.g Zephyr SDK): zephyr
  • Commit SHA or Version used: v4.2.0-4553-g7fc8051b0f4b

Metadata

Metadata

Assignees

Labels

area: TestsIssues related to a particular existing or missing testbugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXPpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions