AnsweredAssumed Answered

problem for global array with big size in Visual DSP++

Question asked by mminrong on Oct 8, 2017
Latest reply on Oct 13, 2017 by Kader.M

Dear,

 

Now I am doing project on BF533 platfrom.I met some problems as follows: compiler is Visual DSP++ 5.1.2

 

I used several global array for data input in following ways:

 

#define LEN0 (36*36*60)

#define LEN1 (18*18*60)

#define LEN2 (3*3*60)

 

#define DATA0  “data0.cvs”  //data0.cvs produced by VS2010 in advance.

#define DATA1  “data1.cvs”

#define DATA2  “data2.cvs”

#define DATA3  “data3.cvs”

#define DATA4  “data4.cvs”

#define DATA5  “data5.cvs”

 

#pragma align 8

section("sdram_bank1")

double DAT0[LEN0 ]  = {

  #include DATA0  

};

 

#pragma align 8

section("sdram_bank1")

double DAT1[LEN1]  = {

  #include DATA1  

};

 

#pragma align 8

section("sdram_bank1")

double DAT2[LEN1]  = {

  #include DATA2  

};

 

#pragma align 8

section("sdram_bank1")

double DAT3[LEN1]  = {

  #include DATA3  

};

 

#pragma align 8

section("sdram_bank1")

double DAT4[LEN1]  = {

  #include DATA4  

};

 

#pragma align 8

section("sdram_bank1")

double DAT5[LEN1]  = {

  #include DATA5  

};

system stack in L1 data,size is 4KB; system heap in SDRAM,size is 3MB,user heap in L1 data,size is 3KB.

 

the code can be compiled successfully,I also can debug the code step by step.

 

but when I read the data from DAT0~5,I found the data gotten is different every .cvs file. coudl you tell me what cause this problem? some settings in compiler is uncorrect?

 

In addition, I modified all .cvs files to global arrays,added these arrays in my project, traced the code step by step,I got the same error as mentioned above.

 

could you give me some suggestions?. thanks in advance.

 

BRS,

Outcomes