Alignment of DMA memory for ADC corrupts

Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

Alignment of DMA memory for ADC corrupts

Postby bmairs » Mon Dec 17, 2012 11:57 pm

Using the ADC inputs in a model generated a dsPIC_DMA_Buffers.c file that has the following line:

Code: Select all

volatile uint16_T ADCBuffChannelDMA[(2)] __attribute__((space(dma),aligned(256)));

The problem with this is it can cause problems with other DMA uses if those aren't aligned to 256 as well. I can't think of any reason for this being necessary, can it be removed so it doesn't cause these problems?

Return to “bug reports”

Who is online

Users browsing this forum: No registered users and 1 guest