Programming cypress CY8C5566AXI-061
I'm putting the summary of this issue as it has got resolved in the Cypress Forum - http://www.cypress.com/?app=forum&amp;id=2233&amp;rID=60040

For 68-pin &amp; 100-pin packages of PSoC 3/5, P1.2 can be used as an "Optional XRES" pin apart from the dedicated XRES pin. So if you want to program the device using Reset mode of programming, you need to use the dedicated XRES pin (pin no 15) for the first time as only that pin is  configured as XRES in the factory. And if P1.2 needs to be used as an XRES pin thereafter, we need to enable this Optional xres pin in .cydwr file -> Systems tab (in PSoC Creator) while programming the device for the first time.

As we already have a dedicated XRES pin, it is recommended to use that pin for programming the device using reset mode of programming.

For 48-pin package of PSoC 3/5, P1.2 (though Optional XRES pin) comes as an XRES pin from the factory itself and can be used as a reset pin for reset mode of programming during first time itself. But thereafter if we need to program the device using reset mode of programming, then we need to enable the Optional XRES option in the .cydwr file (as told above) for the first time programming itself. Otherwise, we need to use MiniProg3 Rev *B which supports Power cycle mode of programming.