Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: Cannot initialise an array in uVision with msp432!

$
0
0
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.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>