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

SPI (test) is not working for LPCXpresso54114 #24376

Closed
Tobi0610 opened this issue Apr 15, 2020 · 0 comments · Fixed by #24398
Closed

SPI (test) is not working for LPCXpresso54114 #24376

Tobi0610 opened this issue Apr 15, 2020 · 0 comments · Fixed by #24398
Assignees
Labels
area: SPI SPI bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug

Comments

@Tobi0610
Copy link

Describe the bug
SPI (test) is not working for LPCXpresso54114.
I created my own SPI-Master sample project and tried also the spi-test in zephyrproject/zephyr/tests/drivers/spi/spi_loopback/. Both are not working for LPCXpresso54114.
The spi-loopback-test (for LPCXpresso54114) was broken by 22326f6

To Reproduce
Steps to reproduce the behavior:

  1. hand wire MOSI and MISO of SPI_5 (Arduino_Header) of LPCXpresso54114 together
  2. run test zephyrproject/zephyr/tests/drivers/spi/spi_loopback/ for LPCXpresso54114

Expected behavior
Test should pass

Impact
Not able to use SPI with LPCXpresso54114.

Screenshots or console output
Console output of SPI test execution:

Running test suite test_spi
===================================================================
starting test - test_spi_loopback
I: SPI test on buffers TX/RX 0x200016ec/0x20000408
I: Start
I: CS control inhibited (no GPIO device)
I: Passed
I: Start
E: Rx Buffer should contain NOP frames but got: 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,    Assertion failed at CMAKE_SOURCE_DIR/src/spi.c:192: spi_null_tx_buf: (1 is true)
Buffer not as expected
FAIL - test_spi_loopback
===================================================================
Test suite test_spi failed.
===================================================================
PROJECT EXECUTION FAILED    Assertion failed at CMAKE_SOURCE_DIR/src/spi.c:399: spi_async_call_cb: (ret is true)
one or more events are not ready

Environment:

  • OS: Linux Manjaro (ARCH)
  • Toolchain: Zephyr SDK
  • branch: master

Additional context

@Tobi0610 Tobi0610 added the bug The issue is a bug, or the PR is fixing a bug label Apr 15, 2020
@MaureenHelm MaureenHelm self-assigned this Apr 15, 2020
@MaureenHelm MaureenHelm added area: SPI SPI bus platform: NXP NXP priority: low Low impact/importance bug labels Apr 15, 2020
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 NXP priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants