Content originally posted in LPCWare by andrewgatt on Mon Jun 08 12:07:20 MST 2015
OK I've attached the smallest amount of code that replicates the probllem. I've got P1_13 and P1_15 physically tied together and I apply +3.3V to them (bit of wire plugged into +3.3V scientifically applied with my fingers!).
When you apply +3.3V to the pins, the interrupt fires, but the condition on both Chip_GPIO_GetPinState calls returning 1 is not met, when running normally. However if you put a break point at line 46 while applying +3.3V to both pins, then step through the code, both Chip_GPIO_GetPinState calls return true and the LED toggles.
I used the latest LPCOpen and copied this file over the periph_grouped_int example, as I don't have my own project going yet.
I hope this is enough to go on. I should add that this is in debug mode with optimisation turned off completely -O0. C only with redlib. And I should also add thank you for taking the time to look into this.