Waiting for SPI RDY on LPC812 (Example_SPI0M_SPI1S)

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

Waiting for SPI RDY on LPC812 (Example_SPI0M_SPI1S)

837 Views
jonaspistor
Contributor I

Hello,

I'm trying to run the SPI0M_SPI1S example on the LPC812 demo board.

It hangs in a loop waiting for the TXRDY flag:

while ((LPC_SPI1->STAT & STAT_TXRDY) == 0);

Debugger shows:

LPC_SPI1->STAT: 0b100010000

STAT_TXRDY: 0b10

Best regards

Jonas

Labels (1)
0 Kudos
Reply
1 Reply

681 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Jonas Pistor,

To provide the fastest possible support, I'd highly recommend you to refer to periph_spi demo in the LPCOpen library whose link is below.

Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply