Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi,
What exactly do you mean with crashing? Can you describe the behaviour a bit more. The code you posted looks not too bad at all. But two things I would change/add. 1. Don't use printf in your ISR. I would use a volatile variable like isr_done to check if the ISR was called or not. 2. At the beginning of the ISR I would clear the status reg of the DMA with IOWR_ALTERA_AVALON_DMA_STATUS(DMA_BASE, 0); Question: Have you enabled the burst mode option for DMA in SOPC? I never used this option but I read a post where somebody had a problem with it.