This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Load memory

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:

  1. 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);

  1. Define the global array as the following

floatcompIn[PULSE_NUM][DISTANCE_NUM * 2] = {

                                                        #include "E:/TI/signal_process/Data/pulse_group.txt"

                                                };

Wangxiao