Right now, I'm using the ULP advisor to try to cut down on power usage. It suggested that I initialize all the ports, which I subsequently did in the code below. However, the warnings keep returning. I used the same initialization code for an MSP430, and the warnings went away. Is there something I need to do differently for the MSP432?
P1->DIR = 0xFF; P1->OUT = 0x00; P2->DIR = 0xFF; P2->OUT = 0x00; P3->DIR = 0xFF; P3->OUT = 0x00; P4->DIR = 0xFF; P4->OUT = 0x00; P5->DIR = 0xFF; P5->OUT = 0x00; P6->DIR = 0xFF; P6->OUT = 0x00; P7->DIR = 0xFF; P7->OUT = 0x00; P8->DIR = 0xFF; P8->OUT = 0x00; P9->DIR = 0xFF; P9->OUT = 0x00; P10->DIR = 0xFF; P10->OUT = 0x00;
These are the warnings I get:
Description Resource Path Location Type
#10372-D (ULP 4.1) Detected uninitialized Port 1 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 10 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 2 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 3 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 4 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 5 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 6 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 7 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 8 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
#10372-D (ULP 4.1) Detected uninitialized Port 9 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.