AnsweredAssumed Answered

Could I import a set of data stored in a file to array while building?

Question asked by Lingjun Kong on Jul 30, 2017
Latest reply on Aug 4, 2017 by KIC8462852 EPIC204278916

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];

.

.

.

.

Outcomes