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

Forum Post: RE: Stuck doing memset before entering main

$
0
0
[quote user="Arvind Padmanabhan"]Problem is that target gets stuck inside memset. It's always within memset.[/quote]It could be that time taken initialize the globals means the watchdog fires before main is reached. By default the TI compiler disables the watchdog during the global variable initialization, via the --cinit_hold_wdt option. For the GCC compiler you have to add code to disable the watchdog during global variable initialization - see CCSv6 / MSP430-FET430UIF Debugger no longer stops at start of program . [Note that the behavior of the GCC compiler has changed between versions as mentioned in the referenced thread, and you haven't said which version of mspgcc is in use]

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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