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.

MSP432 - In Reset / A Reset Occurred On The Target



Hi there,

i am having a problem with the MSP432.

When i debug my Project in to the MSP432 enter in CCS Debug view and see this problem:

and then:

An it keeps doing the the whole time.

It has only occured when i changed my digital filter coeffizient. If i comment them out then it works fine:

It was working before with the old coeffizients but now it doesnt. Even if i put the older ones back it wont work.

I thought that the coeffizient wont fit in the size "double", i tryied "long double" but i got the same problem.

Any idea?

  • Hi Michael!

    The array isn't that large but maybe the double type takes too long to initialize and the watchdog kicks in first that resets your controller.

    Insert these lines somewhere in your code, at the end of the main.c, for example:

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

    And another side info: Although the MSP432 has a floating point unit, this unit is only capable of handling single precision (float) variables. So if you use the double ones for calculations, you will not benefit from the FPU (if you planned to use it).

    Dennis

  • Hi Dennis,

    it works, thanks for your help!
    I cant use single Precision here becouse the coefficients wont fit in.

    i have declared two variables to test if this number would fit it:
    float test_float = -1.9644605802052322;
    double test_double = -1.9644605802052322;

    I debuged it and watched the variables and this is what i got:

    test_float = -1.964461
    test_double = -1.964460580205232

    The fraction number wont fit in both types but it has in "test_double" the best precision.

    My ADC Datarate is very slow <1kHz and the MSP432 is running at 48MHz so it has plennty of time for the Math.

    Michael

**Attention** This is a public forum