SSP & DMA issue in LPC4357 microcontroller...

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

SSP & DMA issue in LPC4357 microcontroller...

777 Views
TEMCEFF
Contributor IV

I had interfaced the LPC812(Slave) to LPC4357(Master) microcontroller through SSP interface.

The SSP at LPC4357 is controlled through DMA. The configurations at LPC4357 are as follows,

SSP :

Frame length : 8-bit,

Communication : SPI, Master

Mode : 1 (CPOL : 0, CPH : 1)

 

DMA:

Rx & Tx channels

Source & destination burst sizes : 1 byte

Source & destination data widths : 1 byte,

     Rx channel : (Channel 0)

     Mode : Peripheral to memory

     Data flow control : DMA control

     Terminal Count interrupt : enabled

     Tx channel : (Channel 1)

     Mode : Memory to peripheral

     Data flow control : DMA control

     Terminal Count interrupt : disabled

When I performed data transfers , it is working for few transfers well as I expected. But some times, I never got the TC interrupt, when go through debugging, I found that, the ROR flag in Raw interrupt status if SSP is getting high & Tx channel of DMA completed its transfer but the Rx channel of DMA not at completed its transfer ever... So, I am not getting the TC interrupt from Rx channel of DMA. This occurring very frequently...

Please help me on this...Its very.. very.. urgent...

Thanks in advance...

Labels (1)
0 Kudos
1 Reply

420 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Anusha,

I see that your question is already being addressed on the Case Number 00080352.

Best Regards!

Carlos Mendoza

Technical Support Engineer

0 Kudos