This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSK6713 Gel file doesnt work with inerrupts



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 

  • Daniel,

    A Moderator will move this thread to the Code Composer Forum (from this C6000 Single Core DSP Forum) where they can comment better on the interaction between the C6713 emulation logic and the GEL slider construct. CCS is generally a stop-based emulator so it will halt the processor to write a value to memory, then resume running after the value has been set. This will definitely have an effect on periodic interrupts depending on their rate and the duration of the halt.

    It may not achieve your final goal, but you can achieve your current goal by sampling one of the DIP switches on the DSK6713 to select the ModeNLMS value. This would not have the same impact, but would require your code to manually sample the state of that GPIO pin.

    Regards,
    RandyP