Hi TI engineer
In our application we need to load a data file which is more than 1MB into ddr in the program. Ddr has been initialized in the gel before that. We try two ways to accomplish it,but both of them has failed.The problem is described as follows:
1. we use #include like that:
#pragma DATA_SECTION( a, ".DDR");
float a[16384] = {#include "..../..../....bin" }
we define a ,b and c.But then we find that only a is on ddr, b and c is mapped into L2 SRAM. But if we don't set value for a,b and c, then they will be map to DDR.
2.then we try another way by using fopen and fread like this:
fp = fopen( "..../..../....bin" ) ;
fread(a , 4, 16384, fp);
But then we find that we can only read 128 Byte into ddr, no more data can be read after then.
Can you tell us how did these problems happen?How can we load data into DDR? Of course we don't want to load memory manully every time.Thank you very much