Hello everybody! Please help! I have such code: #define ... ... static unsigned char TTS_boot_data_lengths[4]={15,15,15,15}; ... int main(void){ ... } When I launch the code it turns out that instead on 15s, all the elements in the declared array are zeros and some garbage!! Why is it so? If I declare the same array inside a function (without "static"), or as a "const" then everything is fine. Sorry it is probably something silly, I am a newbie please help! I tried to ask Keil guyz the same question, but they said that since I had a shareware version of uVision - they would provide no help.
↧