spi_write() is not working in lpc5536 #63748
-
Hello everyone, I configured board file for SPI functionality , I'm getting device ready, but if I try to write something , it's showing write successful but I'm not getting any data from that MOSI pin , the logic analyzer shows some square pulses in both MOSI and CLK pins, I'm sharing my configuration please help me to fix this issue.
.dts file
oled.c
prj.config I'm not sure about priority before setting the priority flag even I'm not getting device ready , after setting the flag only I got device ready
dts/bindings/screen,oled.yaml
dts/bindings/display_logic.yaml
or if I'm doing any configuration wrongly, help me to change the configuration , Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @aravinth-kalai , The good news is other similar boards have the same SPI peripheral supported, including the LPCXPRESSO55S69. This SPI support can be ported to the LPCXpresso55S36 board, but someone needs to do the port and test it. We typically test the SPI driver on a board using the spi_loopback test. And this test has overlay files for the LPCXPRESSO55S69 board, see the boards folder. Something else that comes to mind when enabling a new peripheral on a board, the peripheral clock needs to be enabled. The soc.c has some code you can use as a reference for enabling Flexcomm clocks on the LPC55S36. Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi @aravinth-kalai , Best regards |
Beta Was this translation helpful? Give feedback.
Hi @aravinth-kalai ,
Unfortunately, SPI is not yet supported on the LPCXpresso55S36 board. You can find the Supported Features for each board on the doc page, like this LPCXpresso55S36 table.
The good news is other similar boards have the same SPI peripheral supported, including the LPCXPRESSO55S69. This SPI support can be ported to the LPCXpresso55S36 board, but someone needs to do the port and test it. We typically test the SPI driver on a board using the spi_loopback test. And this test has overlay files for the LPCXPRESSO55S69 board, see the boards folder.
Something else that comes to mind when enabling a new peripheral on a board, the peripheral clock needs to be enabled. The soc.c h…