Tool/software: TI C/C++ Compiler
When making simple test programs (mainly trying to get printf() to work), the program gets stuck in a loop and never returns, the code from boot.c is provided below, the parts of the code that are not hit are commented out. Is there a reason why it never moves to the second `if` statement following the line `if(_system_pre_init() != 0)`? In my main.c program there is a `_system_pre_init` function which stops the watchdog timer and returns 1, but that value is never passed to the `if` statement. Any workarounds or reasons why this occurs?
if(_system_pre_init() != 0) { if (NEEDS_INIT) _auto_init(); } /*------------------------------------------------------------------------*/ /* Handle any argc/argv arguments if supported by an MSP430 loader. */ /*------------------------------------------------------------------------*/ // if (NEEDS_ARGS) // _args_main(); // else // main(0); // exit(1); } //CSTART_DECL _c_int00(void) //{ // _c_int00_template(1, 1, 0); //} CSTART_DECL _c_int00_noargs(void) { _c_int00_template(0, 1, 0); } //CSTART_DECL _c_int00_noinit(void) //{ // _c_int00_template(1, 0, 0); //}