Tool/software:
I had an issue today when trying to set GPIO pin 139 by writing to its bit in the GPESET / GPECLEAR registers in response to a changing variable. The pin did not respond to changes in the registers at all, and I eventually worked out that it was because the preceding function was toggling GPIO pin 128 through the GPETOGGLE register. After adding a nominal delay between the TOGGLE and SET or CLEAR register writes the pin started working as expected. Is this expected behaviour? Note all of the register writes use "=" rather than "|=" so there should be no chance of read-modify-write errors.