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

Running an MOSI only SPI (setting sck to None) causes SPI to hang #410

Open
korken89 opened this issue Nov 4, 2022 · 0 comments
Open

Running an MOSI only SPI (setting sck to None) causes SPI to hang #410

korken89 opened this issue Nov 4, 2022 · 0 comments

Comments

@korken89
Copy link
Contributor

korken89 commented Nov 4, 2022

Hi,

I was testing using the SPI to drive a smart LED where I only needed the MOSI pin, so I set the sck pin to None.
However if one does this the SPI gets stuck in nrf_hal_common::spim::Spim<T>::do_spi_dma_transfer.
Adding back a clock pin does make it work again.

I'm not sure why this happens, and I can't find a reference in the datasheet to this behavior.
Does anyone know how to get this to work without having to have an SCK pin defined?

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

No branches or pull requests

1 participant