Skip to content

NXP RT series fails spi loopback cases for clock modes with CPHA=0 on fast frequencies #90767

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

Open
1 task
decsny opened this issue May 28, 2025 · 1 comment
Open
1 task
Assignees
Labels
area: SPI SPI bus bug The issue is a bug, or the PR is fixing a bug platform: NXP Drivers NXP Semiconductors, drivers priority: low Low impact/importance bug

Comments

@decsny
Copy link
Member

decsny commented May 28, 2025

Describe the bug

On RT1XXX platforms, the spi loopback test reports the spi_complete_loop_mode_0 and spi_complete_loop_mode_2 tests. This is when clock phase is set to 0. This happens on both the interrupt based and DMA based drivers. It specifically fails when spi frequency is fast.

Regression

  • This is a regression.

Steps to reproduce

west build -p always -b mimxrt1050_evk tests/drivers/spi/spi_loopback
west flash

Relevant log output

- FLAKY - [spi_loopback.test_spi_complete_loop_mode_0] - (Failed 1 of 2 attempts) - duration = 0.020 sec
onds
 - PASS - [spi_loopback.test_spi_complete_loop_mode_1] duration = 0.001 seconds
 - FLAKY - [spi_loopback.test_spi_complete_loop_mode_2] - (Failed 1 of 2 attempts) - duration = 0.020 sec
onds
 - PASS - [spi_loopback.test_spi_complete_loop_mode_3] duration = 0.001 seconds

Impact

Functional Limitation – Some features not working as expected, but system usable.

Environment

Zephyr SDK

Additional Context

These clock mode test cases are new.

@decsny decsny self-assigned this May 28, 2025
@decsny decsny added bug The issue is a bug, or the PR is fixing a bug area: SPI SPI bus platform: NXP Drivers NXP Semiconductors, drivers labels May 28, 2025
@nashif nashif added the priority: low Low impact/importance bug label Jun 3, 2025
@decsny decsny changed the title NXP RT series fails spi loopback cases for clock modes with CPHA=1 on fast frequencies NXP RT series fails spi loopback cases for clock modes with CPHA=0 on fast frequencies Jun 3, 2025
@decsny
Copy link
Member Author

decsny commented Jun 5, 2025

#90182 seems to fix this for the interrupt based driver anyways

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

No branches or pull requests

2 participants