Hi, guys,
I cannot seem to be able to stop the watchdog on the Energia + MSP432 combo.
(MSP-EXP432P401R Rev 1.0 + Energia 0101E0016 on Win7-64bit)
// My minimal code buzzes the red led at 2MHz:
#include "msp432p401r.h"
void setup() {
WDTCTL = WDTPW | WDTHOLD; // Stop WDT
pinMode(RED_LED, OUTPUT); // configure pin
}
void loop() {
while (1) {
P2OUT ^= 0x01; P2OUT ^= 0x01; // flip pin twice
};
}
The 2MHz output signal freezes for 12us in either "1" or "0" state every 1ms.
WDTHOLD bit does not help (in fact, any WDTCTL actions seem to be ignored).