This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137-EP: Data Length Error with SPI Slave managed by DMA

Part Number: TMS570LS3137-EP


Hi there,

With a standard SPI module configured as a slave, and DMA configured to transfer received data from that module, could I please confirm:

1) if more clock edges are received than expected via CHARLEN, between CS asserting & deasserting, DLENERRFLG will be set?

2) if fewer clock edges are received than expected via CHARLEN, between CS asserting & deasserting, DLENERRFLG will be set?

3) it is the role of the Software to query & respond to DLENERRFLG - (the DMA will not & can not "flush" the receive buffer following an error)?

With thanks, Mark

  • Hello,

    If fewer clock edges are received than expected via CHARLEN, between CS asserting & deasserting, DLENERRFLG will be set. 

    Yes, it is the role of your SW to handle this error. If ELENERRENA bit of SPIINT0 is set, an interrupt is asserted when a data-length error occurs.