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.

MSP430F1232: Disable NMI MODE

Part Number: MSP430F1232


Hi,

Good Day. Customer have MSP430F1232 in the SOIC-28 package, he use code composer and BSLDEMO2.EXE with USB CP2102 serial adapter to program the chip. My problem is he did by mistake enable the NMI MODE of the MSP430F1232. After that he can not program the chip any more. How he disable this bit? Please advise. Thank you very much.

Best Regards,

Ray Vincent

  • From the user guide: "At power-up, the RST/NMI pin is configured in the reset mode."

  • Hi,

    Add more information to David says. In the UG, it also says that "If a PUC occurs from a different source while the NMI signal is low, the device will be held in the reset state because a PUC changes the RST/NMI pin to the reset function."

    In this situation, the RST/NMI pin is in reset function. Customer could use it to program the chip.

    Best regards,

    Cash Hao

  • Hi David, Cash,

    Good Day. Additional query from the customer, please see below for your reference. Thank you very much.

    I use BSL to program my chip. I use CP2102 (usb to serial adaptor) and use uart pin of MSP430F1232 (P1.1 and P2.2 and TEST and RST Pins)
    after I did program by mistake this : WDTCTL = WDTPW | WDTHOLD | WDTNMI;
    I can't reach and reprogram my chip again, is there any suggestion to undo this mistake?

    Best Regards,

    Ray Vincent

  • Same question.

    As stated in BSL documentation, setting that pin to the NMI mode will prevent entry into BSL mode. Presumably the problem is that the code sets the NMI mode before you can trigger entry into BSL mode. You might be able to sidestep that.

    Entry into BSL mode depends on toggling the TCK pin twice while RST is low. So pull RST low before applying power to the device. Then, somehow, toggle TCK. When you release RST, the chip should be in BSL mode.

    If you are very lucky, you can continue from there.

  • Hi David,

    Good Day. Please see below the response of our customer to your reply. Thank you very much.

    Could you please send me an example C code to do that?
    I didn't know what should I add to my code to skip this step and disable the NMI mode.

    Best Regards,

    Ray Vincent

  • There is no C code as this is a hardware thing. And a long shot at that.

    Replace the device and don't play with NMI again.

  • Hi Ray,

    Additional to David said, it is a hardware thing. The purpose is to make the MCU goes into BSL mode again so that you can write a new code into your chip.

    You can find this information below in this link and try to entry the BSL mode . https://www.ti.com/lit/ug/slau320aj/slau320aj.pdf

    "Pulling the TEST/SBWTCK pin high enables the SBW interface and disables the RST/NMI functionality of the RST/NMI/SBWTDIO pin. While the SBW interface is active, the internal reset signal is held high, and the internal NMI signal is held at the input value seen at RST/NMI with TEST/SBWTCK going high."

    Best regards,

    Cash Hao

**Attention** This is a public forum