Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 218846

Forum Post: RE: MSP430F5359: CGT-generated MSP430X images won't start if .bss is 985 bytes or more

$
0
0
I'm thinking the problem is actually the Watch Dog Timer. The big difference that my re-arrangement made was that _system_pre_init() now sets the WDT to Hold Mode whereas my old code was causing the CGT environment to invoke __TI_auto_init_nobinit_nopint() which DOES NOT affect the WDT. In that world, if the WDT times out, the program will be reset. And I guess that initializing 985 bytes of .bss takes just long enough to let the WDT time out. I'll experiment to prove that this was the critical difference. A moment later… Yes, that was the problem! I wonder why the environment elected to use: __TI_auto_init_nobinit_nopint() rather than: __TI_auto_init_nobinit_nopint_hold_wdt() But it's probably some compiler/linker qualifier I didn't use. I'll go back to the compiler manual and read more.

Viewing all articles
Browse latest Browse all 218846

Trending Articles