I've been trying to get P0.2 to work as a general purpose output.
The datasheet obviously states that "If P0.0/BM = 1, this pin [P0.2] defaults to a JTAG test data input pin." but it goes on to state that it "is a multifunction pin as follows..."
My BM pin is defaulting to high on power up but my writing to GP0CON.bits9:8 and GP0DAT.bits26+18 seem to have no effect on the state of P0.2. I have also unplugged JTAG and removed any resister pullups on P0.2.