AnsweredAssumed Answered

LPC546xx SPI Always Stalled

Question asked by Matt Lang on Apr 25, 2019
Latest reply on May 6, 2019 by jeremyzhou

I am using the SDK for the SPI0 with Flexcomm0 for the LPC54605 MCU.

 

I am using the SPI_MasterTransferBlocking function. It works fine, but the SPI0->STAT stalled bit is always set and the MSTIDLE flag is never set to one again. Also the SSA flag is stuck to one as well.

 

I need to poll for the transfer to be complete, not poll for the FIFO to be empty. 

 

 

My SPI Init routine:

 

 

Once you start a transfer the STAT register looks like this:

 

And you can keep sending data just fine, but the STALLED bit stays set even when using the SPI_MasterTransferBlocking.And MSTIDLE never is set again.

I don't need to receive anything, I even set the RXIGNORE flag in FIFOWR. But that did nothing.

Outcomes