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.

How to get the last reset reason in MSP430FG4617

Other Parts Discussed in Thread: MSP430FG4617

Hi guys,

We are working on a product based on MSP430FG4617. The device was running all the time last weekend, and we found there was a reset during that period. This sort of reset is much rare in the product. Could you please tell me how to get the reset reason?

Thanks and best regards,

Jingle.

  • Unfortunately, the 4x family does not have a reset vector register that tells the last cause of reset (only the 5x family has)

    The only way to identify a reset cause is to prepare and analyze some registers which are treated differently on different levels of reset.

    If you see the register descriptions, you'll see some registers which are initialized on a PUC, some on a POR and some on a BOR only. If you alter tham and after a reset check them,. you can deduct what was causing the reset. If a BOR-initialized register bit was reset, then it was a BOR (external reset on RST pin or power-on) etc. Else it was a watchdog reset or a flash password violation etc.

**Attention** This is a public forum