Hello All,
I using simulator of TMS320C64+, little endian. I tried to load data into program by using test probe (exactly like in tutorial "volume").
in example the data is declared like this:
int inp_buffer[BUFSIZE]; /* processing data buffers */
int out_buffer[BUFSIZE];
...
and data from file sine.dat is loaded into inp_buffer and referred to by "input" pointer:
int *input = &inp_buffer[0];
int *output = &out_buffer[0];
the sine.dat look like this:
0x00000000
0x0000000f
0x0000001e
0x0000002d
0x0000003a
0x00000046
0x00000050
0x00000059
...
And it works. The problem occures when I try to load the float data from a different file, that includes float data. First I change the declaration of the variables:
double inp_buffer[BUFSIZE]; /* processing data buffers */
...
double *input = &inp_buffer[0];
The file that loaded looks like this:
-0.132683459
-0.130372237
-0.128074536
-0.126085288
-0.124143473
-0.121914215
-0.119524508
-0.117318421
...
The problem is that the data now is not loaded (stays 0.0). When I redeclare variable to float, the data is shown incorrectly.
Please help.
Regards
Arye