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

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

$
0
0
[quote user="Chester Gillon"]Will try your example of initialized global variables when get access to a MSP432.[/quote]I added the following to the Blinky example, and added a reference to the array to avoid getting a warning about an unused variable: static unsigned char TTS_boot_data_lengths[4]={15,15,15,15}; The uVision debugger showed that the TTS_boot_data_lengths array had been initialized with the expected values. The only quirk of the debugger I noticed was that if you hover the cursor over the TTS_boot_data_lengths array, without selecting the array name, the tooltip incorrectly reports the first value in the array is 0x0: Whereas if you select the TTS_boot_data_lengths variable in the editor the tooltip then shows the expected values: The Memory window displays the expected contents of the TTS_boot_data_lengths array in both cases.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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