This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IAR上面的官方例程没有low_level_init.c,这个文件是不必要的吗?

Other Parts Discussed in Thread: MSP430I2041

使用MSP430i2041,加入low_level_init.c后仿真死在low_level_init.c里。提示

 Warning: CPU is OFF (Low Power Mode) and interrupts are disabled! Cannot execute Step/Go.

大数组也全部用 _no_init。

  • 使用iar的话,直接新建工程就可以了,不用刻意去加这个文件。
  • 1)这个__low_level_init 函数是iar开发环境自带的内部函数。不用加入工程,编译的时候会自动加入
    2)情况函数说明
    /*
    * The function __low_level_init it called by the start-up code before
    * "main" is called, and before data segment initialization is
    * performed.
    *
    * This is a template file, modify to perform any initialization that
    * should take place early.
    *
    * The return value of this function controls if data segment
    * initialization should take place. If 0 is returned, it is bypassed.
    *
    * For the MSP430 microcontroller family, please consider disabling
    * the watchdog timer here, as it could time-out during the data
    * segment initialization.
    */