Hello, I've read through all of the discussions about this, but I'm still unable to get my project to build. I'd really appreciate some assistance...
I have the 21469-EZ Kit board, and I'm just getting started. I've gotten other projects to build and load just fine. I created a new CCES project, and began adding files to my project from the VDSP example "21469 AD1939 C Sampled-Based Talkthru 48 or 96 kHz". I copied the Main.c code into mine and modified for the interrupt, per the discussions here. I also tried updating the LDF file to the default for CCES.
No matter what I do, I still get the following errors when I call adi_int_InstallHandler:
cc3089: fatal error: Link failed (code:1)
make: *** [Audio Processor.dxe] Error 1
Here is my code:
/*****************************************************************************
* Audio Processor.c
*****************************************************************************/
#include "ADDS_21469_EzKit.h"
#include <sys/platform.h>
#include "adi_initialize.h"
#include "Audio Processor.h"
#include <services/int/adi_int.h>
float * DelayLine;
int Index = 0;
int Sine_Index = 0;
int SPORT1_isr_count = 0;
int SPORT0_isr_count = 0;
void SPORT1_isr_counter(void);
void SPORT0_isr_counter(void);
int main(int argc, char *argv[])
{
adi_initComponents();
initPLL(); // initialize the PLL
initDDR2DRAM(); // initialize the DDR2
// Initialize DAI because the SPORT and SPI signals need to be routed
InitDAI();
// This function will configure the AD1939 codec on the 21469 EZ-KIT
Init1939viaSPI();
// Turn on SPORT0 TX and SPORT1 RX for Multichannel Operation
enable_SPORT01_MCM_mode();
// Unmask SPORT1 RX ISR Interrupt
adi_int_InstallHandler(ADI_CID_SP1I, /*iid - high priority core timer */
(ADI_INT_HANDLER_PTR)process_AD1939_samples, /*handler*/
(void *)0, /*handler parameter*/
true);
// Enable multichannel operation (SPORT mode and DMA in standby and ready)
*pSPMCTL0 |= MCEA;
*pSPMCTL1 |= MCEA;
SinTableInit();
// Set up small delay buffer
DelayLine = (float *) 0x000C4000;
for (;;)
{
asm("idle;");
}
return 0;
}