This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

P2/ P2_1 cannot be set

Other Parts Discussed in Thread: CC2540

I am trying to manually set the High/Low on different pins programically for my cc2540/1. I have tried to use the individual bits of P0/P1/P2, and the more direct P2_1. 

No matter how I try it, the values start as P2 = 1 and P2_1 = 0 and after 

P2_1 = 1;

OR

P2 = 2;

It never changes the actual value, they stay at P2 = 1 and P2_1 = 0. 

I have been able to set P0DIR correctly though.

Any advice is welcome.