Part Number: MSP432P401R
Tool/software: Code Composer Studio
I have had this happen waiting for an input bit to change and also waiting for a variable to change that is changed in an interrupt routine. If I Pause the program and Run again immediately, it works fine.
The part waiting for a bit to change is a very short while loop and is identical to another while loop waiting for a different bit to change on a different port. I have checked the port direction register and it is correct.
The part waiting for a variable to change is a null loop waiting for the test variable to change. It works fine for the first change, but not later. Again, pausing and running again gets it through.