AnsweredAssumed Answered

Enable ppi_dma cause programme crash

Question asked by sinma on May 20, 2010
Latest reply on Jun 2, 2010 by PrasanthR

  DMA0_CONFIG register FLOW is set to 0x7 ( large model).if application enable ppi and don't running anyelse programme ,ppi_dam can work well.

if application enable ppi and go into while recycle .as follow ,the programme will crash soon

 

encode()

{

   ......

  *pPPI_CONTROL |= PORT_EN;

  while(1)

  {//none code...

  }

}

 

the reasson may be caused by bus conflicts?  The DMA traffic controller register DMA_TC_PER is set to 0x6F0

void configureDMA(void)     
{
    *pDMA_TC_PER = DMA_TRAFFIC_CONTROL_CONFIG_VAL;  //0x6F0
    *pEBIU_AMGCTL |= CDPRIO;//#define CDPRIO                  0x0100
    ssync();
    mdma_base_address_0 = MDMA_D0_NEXT_DESC_PTR;//0xFFC00E00
}

how to resolve the issue ? thanks.....

Outcomes