possible bug using 2 ADC - solved
Posted: Mon Apr 06, 2009 10:31 am
Hello Lubin,
I try to compile this model but it doesn't work.
It writes the following message in the command window.
In the file "dsPIC_DMA_Buffers.c", there is no include of "test_ADC_private.h" (NameOfTheModel_private.h) where the variable ADCBuffChannelDMA as the type extern.
Does the compilation error come from that problem? or do you have an other idea?
Thanks for your help!
Michael
PS : I use the dsPIC33FJ128GP802 chip.
I try to compile this model but it doesn't work.
It writes the following message in the command window.
Code: Select all
dsPIC_DMA_Buffers.c:3: error: syntax error before 'ADCBuffChannelDMA'
dsPIC_DMA_Buffers.c:3: warning: data definition has no type or storage class
gmake: *** [dsPIC_DMA_Buffers.o] Error 255
Code: Select all
//dsPIC_DMA_Buffers.c
#include "p33fxxxx.h"
volatile uint16_T ADCBuffChannelDMA[(2)] __attribute__((space(dma),aligned(256)));
Code: Select all
//test_ADC_private.h
extern volatile uint16_T ADCBuffChannelDMA[(2)] __attribute__((space(dma),aligned(256)));
Thanks for your help!
Michael
PS : I use the dsPIC33FJ128GP802 chip.