Skip to content

spi_mcux_lpspi - How can I ensure that the Chip Select line remains asserted for the entire transaction #81264

Closed Answered by DerekSnell
ofirshe asked this question in Q&A
Discussion options

You must be logged in to vote

@ofirshe , the cs-gpios property is not meaningless. That property configures the Zephyr SPI driver to drive a GPIO signal as the chip select, and also specifies which GPIO signal to drive. But you also need to configure the pinmux setting in the pinctrl node. In your case, the MIMXRT1060-EVK board configures the iomuxc_gpio_sd_b0_01_lpspi1_pcs0 pinmux option for that pin. You are trying to use that same pin, but configure it as GPIO signal instead of the SPI hardware CS signal.

To help clarify, here are details based on the LPSPI_cs-gpio.zip example I attached above. This example was written for the MIMXRT1170-EVK board using LPSPI1. Below is the overlay file to configure LPSPI1 to use t…

Replies: 9 comments 24 replies

Comment options

You must be logged in to vote
2 replies
@ofirshe
Comment options

@ofirshe
Comment options

Comment options

You must be logged in to vote
3 replies
@ofirshe
Comment options

@ofirshe
Comment options

@ofirshe
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@ofirshe
Comment options

@tbursztyka
Comment options

@ofirshe
Comment options

@tbursztyka
Comment options

@ofirshe
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ofirshe
Comment options

@tbursztyka
Comment options

@ofirshe
Comment options

@DerekSnell
Comment options

@ofirshe
Comment options

Comment options

You must be logged in to vote
4 replies
@ofirshe
Comment options

@ofirshe
Comment options

@ofirshe
Comment options

@ofirshe
Comment options

Answer selected by DerekSnell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: SPI SPI bus platform: NXP NXP platform: NXP Drivers NXP Semiconductors, drivers
4 participants