Search the Community
Showing results for tags 'wdtctl'.
-
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).
-
Hello, I am new to the MSP430 Launchpad and am trying to get familiar with CCS5 and the MS430. I am trying to use macros to control the watch dog timer but I can't seem to get it working. The code builds fine but when it gets run it gets hung up and won't give me any kind of error until I pause. The error is as follows: Can't find a source file at "/tmp/TI_MKLIBTw7SkT/SRC/autoinit.c" Though, I am able to get it working if I set all the bits at once. See below for examples. This does not work.... #define wdt_password_set() ( WDTCTL |= WDTPW ) #define wdt_mode_inte