Waiting for SPI RDY on LPC812 (Example_SPI0M_SPI1S)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Waiting for SPI RDY on LPC812 (Example_SPI0M_SPI1S)

1,136件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

980件の閲覧回数
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 件の賞賛
返信