[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]
↧