Skip to content

STM32: SPI 3 wires mode not supported in SPI slave #5565

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

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

LMESTM
Copy link
Contributor

@LMESTM LMESTM commented Nov 23, 2017

This patch handles the case of SPI slave mode without MISO (NC).
In case MISO is not connected, we consider that SPI will be configured in
3 wires mode (CLK / MOSI / CS, but no MISO). In this case, the MOSI line
is bi-directional : SPI_DIRECTION_1LINE.

But as this is not supported yet in slave mode, we force it to
SPI_DIRECTION_2LINES. In this case slave SPI will receive data on MOSI
but nothing will be sent back to master as MISO is not connected.

This FIX addresses the issue reported in: #5554

This patch handles the case of SPI slave mode without MISO (NC).
In case MISO is not connected, we consider that SPI will be configured in
3 wires mode (CLK / MOSI / CS, but no MISO). In this case, the MOSI line
is bi-directional : SPI_DIRECTION_1LINE.

But as this is not supported yet in slave mode, we force it to
SPI_DIRECTION_2LINES. In this case slave SPI will receive data on MOSI
but nothing will be sent back to master as MISO is not connected.
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 24, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 24, 2017

Build : SUCCESS

Build number : 587
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5565/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Nov 24, 2017

@mbed-ci
Copy link

mbed-ci commented Nov 24, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 27, 2017

nucleo f429 time-outs for sleep lock, this does not seem related, at least one more retrigger to be certain this is master/this patch issue.

/morph test

@mbed-ci
Copy link

mbed-ci commented Nov 27, 2017

@kegilbert
Copy link
Contributor

F429ZI was failing with bad flashes, updated some of the CI hardware to hopefully resolve the issue. Will kick off the test again in a minute.

@kegilbert
Copy link
Contributor

/morph test

@mbed-ci
Copy link

mbed-ci commented Nov 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants