Description
Describe the bug
spi async test fails when enabled on rt1180 platform
Please also mention any information which could help others to understand
the problem you're facing:
- What target platform are you using?
- mimxrt1180_evk_cm33
- What have you tried to diagnose or workaround this issue?
- git bisect
- Is this a regression? If yes, have you been able to "git bisect" it to a
specific commit?
08351250db03b0e7ca4d745ef66598c10f054ff4 is the first bad commit
commit 08351250db03b0e7ca4d745ef66598c10f054ff4
Author: Declan Snyder <declan.snyder@nxp.com>
Date: Thu Mar 13 14:25:58 2025 -0500
tests: spi_loopback: nxp: remove lpspi async=n cfg
Remove the overlay files for many of the NXP platforms, because they
were doing two things that are no longer relevant:
1) CONFIG_SPI_ASYNC=n -> LPSPI driver used to not work with
CONFIG_SPI_ASYNC, now it does, so we should test it.
2) CONFIG_SPI_MCUX_LPSPI_DMA=y -> This is redundant with the
testcase.yaml
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
To Reproduce
west update
scripts/twister --device-testing --hardware-map ${HOME}/nxp/mimxrt1180_evk_cm33/map.yaml -T tests/drivers/spi/spi_loopback --west-flash
Expected behavior
Test pass
Impact
spi async functions
Logs and console output
2025-05-07 10:41:01,249 - twister - DEBUG - DEVICE: �*** Booting Zephyr OS build v4.1.0-3452-g021d90b641bb ***
2025-05-07 10:41:01,252 - twister - DEBUG - DEVICE: Running TESTSUITE log_link_order
2025-05-07 10:41:02,939 - twister - DEBUG - DEVICE: =============================================�*** Booting Zephyr OS build v4.1.0-3509-g91fe6c13e52f ***
2025-05-07 10:41:02,948 - twister - DEBUG - DEVICE: SPI test on buffers TX/RX 0x30004320/0x30004300, frame size = 8, DMA enabled (without CONFIG_NOCACHE_MEMORY)
2025-05-07 10:41:02,953 - twister - DEBUG - DEVICE: Polling...Running TESTSUITE spi_extra_api_features
2025-05-07 10:41:02,959 - twister - DEBUG - DEVICE: ===================================================================
2025-05-07 10:41:02,961 - twister - DEBUG - DEVICE: START - test_spi_lock_release
2025-05-07 10:41:03,167 - twister - DEBUG - DEVICE: E: Timeout waiting for transfer complete
2025-05-07 10:41:03,179 - twister - DEBUG - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/spi/spi_loopback/src/spi.c:109: spi_loopback_transceive: (ret is true)
2025-05-07 10:41:03,182 - twister - DEBUG - DEVICE: SPI transceive failed, code -116
2025-05-07 10:41:03,186 - twister - DEBUG - DEVICE: FAIL - test_spi_lock_release in 0.221 seconds
2025-05-07 10:41:03,192 - twister - DEBUG - DEVICE: ===================================================================
2025-05-07 10:41:03,195 - twister - DEBUG - DEVICE: TESTSUITE spi_extra_api_features failed.
2025-05-07 10:41:03,199 - twister - DEBUG - DEVICE: Running TESTSUITE spi_extra_api_features
2025-05-07 10:41:03,205 - twister - DEBUG - DEVICE: ===================================================================
2025-05-07 10:41:03,208 - twister - DEBUG - DEVICE: START - test_spi_lock_release
2025-05-07 10:41:03,413 - twister - DEBUG - DEVICE: E: Timeout waiting for transfer complete
2025-05-07 10:41:03,424 - twister - DEBUG - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/spi/spi_loopback/src/spi.c:109: spi_loopback_transceive: (ret is true)
2025-05-07 10:41:03,427 - twister - DEBUG - DEVICE: SPI transceive failed, code -116
2025-05-07 10:41:03,431 - twister - DEBUG - DEVICE: FAIL - test_spi_lock_release in 0.220 seconds
2025-05-07 10:41:03,437 - twister - DEBUG - DEVICE: ===================================================================
2025-05-07 10:41:03,441 - twister - DEBUG - DEVICE: TESTSUITE spi_extra_api_features failed.
2025-05-07 10:41:03,443 - twister - DEBUG - DEVICE: Running TESTSUITE spi_loopback
2025-05-07 10:41:03,449 - twister - DEBUG - DEVICE: ===================================================================
2025-05-07 10:41:03,452 - twister - DEBUG - DEVICE: Testing loopback spec: SLOW
2025-05-07 10:41:03,454 - twister - DEBUG - DEVICE: START - test_nop_nil_bufs
2025-05-07 10:41:03,458 - twister - DEBUG - DEVICE: PASS - test_nop_nil_bufs in 0.001 seconds
2025-05-07 10:41:03,464 - twister - DEBUG - DEVICE: ===================================================================
2025-05-07 10:41:03,467 - twister - DEBUG - DEVICE: START - test_spi_async_call
Environment (please complete the following information):
- OS: (e.g. Linux, MacOS, Windows)
- Toolchain (e.g Zephyr SDK, ...)
- Commit SHA or Version used: v4.1.0-3452-g021d90b641bb