Hi, guys
I wanna initialize a float array in 28335, which is a global variable. I used the following codes:
float response_buffer[50]={0.0,0.0};
Then, after the program was loaded and started, only the 1st and 2nd element in the array are initialized as expected. Other elements are just random numbers, maybe they are the former value in the memory.
I have learnt about that in mostly common C/C++ compiler, "float response_buffer[50]={0.0}" will initialize all elements in the array to 0.
So is it the compiler used by 28335 that lead this problem? How should I do to initialize an array? Any difference for global and local array?
Thank you
Wenlong Lee