Waiting for SPI RDY on LPC812 (Example_SPI0M_SPI1S)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Waiting for SPI RDY on LPC812 (Example_SPI0M_SPI1S)

1,138 次查看
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 回复

982 次查看
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 项奖励
回复