AnsweredAssumed Answered

The design for ad9361 N0-OS software [analog device wiki] has some erros?why?

Question asked by guiyuan on Jul 7, 2015
Latest reply on Jul 17, 2015 by guiyuan

  The erros are as follows:

Description      Resource Path Location   Type

'XPAR_AXI_AD9361_ADC_DMA_BASEADDR' undeclared (first use in this function)     adc_core.c       /sw/src    line 110    C/C++ Problem

'XPAR_AXI_AD9361_BASEADDR' undeclared (first use in this function)         adc_core.c       /sw/src    line 69      C/C++ Problem

'XPAR_AXI_AD9361_BASEADDR' undeclared (first use in this function)         adc_core.c       /sw/src    line 87      C/C++ Problem

make: *** [src/adc_core.o] 错误 1       sw C/C++ Problem

 

   I am sure that these variables have been declared in the "parameters.h"file which is included .like this:

"parameters.h"

#ifdef XPAR_AXI_AD9361_0_BASEADDR

#define AD9361_RX_0_BASEADDR XPAR_AXI_AD9361_0_BASEADDR

#define AD9361_TX_0_BASEADDR XPAR_AXI_AD9361_0_BASEADDR + 0x4000

#else

#define AD9361_RX_0_BASEADDR XPAR_AXI_AD9361_BASEADDR

#define AD9361_TX_0_BASEADDR XPAR_AXI_AD9361_BASEADDR + 0x4000

#endif

#ifdef XPAR_AXI_AD9361_1_BASEADDR

#define AD9361_RX_1_BASEADDR XPAR_AXI_AD9361_1_BASEADDR

#define AD9361_TX_1_BASEADDR XPAR_AXI_AD9361_1_BASEADDR + 0x4000

#else

#ifdef XPAR_AXI_AD9361_0_BASEADDR

#define AD9361_RX_1_BASEADDR XPAR_AXI_AD9361_0_BASEADDR

#define AD9361_TX_1_BASEADDR XPAR_AXI_AD9361_0_BASEADDR + 0x4000

#else

#define AD9361_RX_1_BASEADDR XPAR_AXI_AD9361_BASEADDR

#define AD9361_TX_1_BASEADDR XPAR_AXI_AD9361_BASEADDR + 0x4000

#endif

#endif

#ifdef XPAR_AXI_DMAC_0_BASEADDR

#define CF_AD9361_RX_DMA_BASEADDR XPAR_AXI_DMAC_0_BASEADDR

#else

#define CF_AD9361_RX_DMA_BASEADDR XPAR_AXI_AD9361_ADC_DMA_BASEADDR

#endif

#ifdef XPAR_AXI_DMAC_1_BASEADDR

#define CF_AD9361_TX_DMA_BASEADDR XPAR_AXI_DMAC_1_BASEADDR

#else

#define CF_AD9361_TX_DMA_BASEADDR XPAR_AXI_AD9361_DAC_DMA_BASEADDR

#endif

#ifdef _XPARAMETERS_PS_H_

#define ADC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0x800000

#define DAC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0xA000000

 

"adc_core.c"

#include <stdint.h>

#include <stdlib.h>

#include <xil_cache.h>

#include <xil_io.h>

#include "adc_core.h"

#include "parameters.h"

#include "util.h"

who can help me ?thank you every much!

Outcomes