Hello,
i have a little problem with my my program...
Using DSK6713, Win7, CSv5.5
This is my Code:
main.c
//Adaptnoise.c Adaptive FIR filter for noise cancellation
#include "header.h"
#include "DSK6713_AIC23.h"
float NLMS_function();
//short output_func ();
Uint32 fs= DSK6713_AIC23_FREQ_8KHZ;
//Define
#define LEFT 0 //stereo
#define RIGHT 1 //stereo
int i=0;
int a=0;
int b=0;
int k=0;
float output=0;
int count1=0;
short x=0 ;
float Q=0;
short ModeNLMS=1;
//Data Transfer from/to Codec
union {Uint32 uint; short channel[2];} AIC23_output;
union {Uint32 uint; short channel[2];} AIC23_input;
//short x[3] = {0,0,0};
//short input;
#define m 100000
float e_LMS[m];
#pragma DATA_SECTION (e_LMS,".EXT_RAM")
interrupt void c_int11() //ISR
{
if (ModeNLMS == 2)
{
bla bla bla bla......
}
return; //return from ISR
}
main()
{
comm_intr(); //init DSK, codec, McBSP
while(1) //infinite loop
{
}
}
my gel file:
menuitem "ModeChange"
slider ModeChange(1,2,1,1,modi) /*incr by 1,from 1 up to 2*/
{
ModeNLMS = modi; /*vary type of output*/
}
---------------------------------
If I load the gel file and Run the program...
I get this here...
ModeChange(2) cannot be evaluated.
Could not write 0x0001ED64: Execution state prevented access
at ModeNLMS=modi [Adaptnoise_2IN.gel:7]
at ModeChange(2)
If Im Changing the Options
Tools->Debugger Options -> Auto Run and Launch Options (TMS320C6713)
yes to -> Halt the target before any debugger access (will impact servicing of interrupts)
So its stay in while loop.... and my program dosen' t work, i Can change the slider to 1 and 2 ... no error dialog. But my interrupt doesn't work.
Is there a solution that the interrupts still work but also work the slide the slider without a error ?
thank you so much!
daniel