Question
Could I import a set of data stored in a file to array while building?
Posted on July 30, 2017 at 12:59
I have a large data set int a[10000]. which is needed in program. But it is too large to write by hand to the .c file for me.
How could I put it into ROM? There any synthex for to help me to import it to program when compiling?
which may let the program looks like this:
const int a[10000];
#loaddata '10000*4 bytes', './a.bin', &a[0];
.
.
.
.
