LPSPI module- keeping chip select active

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPSPI module- keeping chip select active

1,638 Views
SK_98
Contributor I

Hi all,

I'm using LPSPI module of K32L2A41VLL1A to send/receive data to/from External flash. My requirement is to first send command data with Rx buffer null and then receive the buffer with tx null. i.e., after sending command there's a second send/receive function to retrieve the received buffer. But I'm not able to get that data. Can you help me with the configurations I have to do so that the Rx buffer data is not lost during my second transaction?

Thanks in advance!

Shri

 

0 Kudos
Reply
1 Reply

1,634 Views
hefan
Contributor I

After send command data with Rx buffer null, lpspi pull cs high.You can Transfer with rx no null and tx no null.

RT1170,for reference:

hefan_2-1654064485616.png

hefan_1-1654064347837.png