Are you uising the boost regulator ? Curiously enough the currents you
are measuring are the Iq currents for boost reg in active and standby mode.
I am sure you have seen these ? (ap note has had revisions) -
http://www.cypress.com/?rID=64554 AN77900 - PSoC® 3 and PSoC 5LP Low-power Modes and Power Reduction Techniques
http://www.cypress.com/?rID=43337 AN61290 - PSoC® 3 and PSoC 5LP Hardware Design Considerations
You changed some pins, as you said.
Can it be that now one of the pins supplies or draws current because it is not switched to Hi-Z before sleeping?
Ok, to spare everyone a long story, I did some more tests and it seems to come down to one pin (P15).
I fetched my old board, and it drew even less current than I remembered: 1.5uA. there were only 2 capsense pins that changed, so I took the old code before the board update, loaded it on the new one and presto, the current was low again. I checked the toplevel hardware diagram, and only one thing changed; an idle pin that was left on the top sch in the old version. The reason I deleted it after the board update was that the pin name still refers to a function that was not implemented in the new board (I suspect this was actually an issue I experienced on the first board, as the first board was later modified to be like the new one, so that pin could have been removed).
The pin sch symbol sets up pin 15 as an output defaulting to high. This pin on the datasheet just says (GPIO, Xi), so I suppose its possible that the Xi function was being enabled by default or something.... always fun chasing these types of gremlins...
Congratulations to get it to work! Yes, that tiny little changes... always a source for spending some time to hunt them down...
Thats possible, although I wouldn't think this is the case as my clocks are setup to use IMO from the start... unless the configuration of the pins are simply never chaned to refect this change in clocks. it would be interresting to go delve through the init code to see what happens with and without this... but for right now I'm just happy everything is working again.