Hi engineer
We use the menu ‘Tools->Load memory’ on CCS5.3.0 to load .bin files to global arrays under debug mode. It’s troublesome and unreliable since we need to load several files manually. Is there any other method as effective as the above one can load memory automatically? We’ve tried two methods already, but they are inefficient. The two methods are as follows:
- Use fread() to read files
fid = fopen("E:/TI/signal_process/Data/pulse_group.bin","rb+");
fread(compIn, 1, PULSE_NUM*DISTANCE_NUM*2*sizeof(float), fid);
fclose(fid);
- Define the global array as the following
floatcompIn[PULSE_NUM][DISTANCE_NUM * 2] = {
#include "E:/TI/signal_process/Data/pulse_group.txt"
};
Wangxiao