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.

Big size ARRAY in MSP432

I have a big size array need put in MSP432 RAM, but when I go into debug session, debug thread will crash, can't run any code ,then will jump to unkown address.

How to build a big size(>8kB) array in MSP432?

  • Hi Tan!

    The watchdog might kick in before the array is initialized. To avoid this, insert a pre-init function into your code and stop the watchdog in it. This code will be executed before anything else is done:

    int _system_pre_init( void )
    {
      WDTCTL = ( WDTPW | WDTHOLD );
    
      return 1;
    }

    You can place this function somewhere in your main.c file. It does not need an extra function prototype.


    Dennis

**Attention** This is a public forum