Hallo,
ich hab Probleme bei der Konfigurierung des DMA in Verbindung meines
dsPIC33FJ. Wenn ich mein Code kompilieren will kommt immer dieser
Fehler.
config.c:178: warning: ignoring space attribute applied to automatic
BufferB
config.c:180: warning: ignoring space attribute applied to automatic
BufferA
config.c:183: error: Argument to __builtin_dmaoffset() is not the
address
of an object in a dma section;
the object must not be qualified with any form of index
config.c:184: error: Argument to __builtin_dmaoffset() is not the
address
of an object in a dma section;
the object must not be qualified with any form of index
die passende Code Zeilen
struct
{
unsigned int Adc1Ch0;
unsigned int Adc1Ch1;
} BufferB __attribute__((space(dma)));
unsigned int BufferA[2] __attribute__((space(dma)));
DMA0STA = __builtin_dmaoffset(BufferA);
DMA0STB = __builtin_dmaoffset(BufferB);
weiß nicht wo der Fehler ist. Hoff es kann mir jemand helfen
danke ;)