Do you have all the required decoupling caps (as required by the data sheet), close to the chip? You should verify with a scope that none of the supply voltages drops during programming.
Did you mean even Vtarg? Except Vtarg, all other voltages are consistent with the specification. During programming, Vtarg voltage toggles between zero and 3.3V.
Please check whether the XRES pin on the test board was connected properly or not.
Please tell your observation with Reset mode of programming and the Power Cycle mode of programming
I suggest you to use the latest PSOC Creator4.0 UP1 available here-
I checked that the XRES pin is connected to the switch and the voltage is also 3.3V. After installing the latest version, both the modes(Reset and Power cycle) are resulting in the same error. "Error: dbg.M0023: There was an error while programming the device: Connection with device lost during programming. Verify the device is connected and try again".
I was able to program the CY8CKIT-50B in Reset mode but not with power cycle mode.
For those of you who are building custom PCBs with PSoC 5LP and programming with Miniprog3, follow the design guidelines carefully.
- Ensure that the capacitors are as per recommendation across power lines VDDD(UPTO 5.5V), VDDA(UPTO 5.5V), VCCA(1.8), VCCD(1.8)
- For the first time programming, try with "Reset Mode" and short the nXRES(Pin no. 15) OF PSoC with the /XRES(Pin no. 10) of Miniprog3 using a wire or jumper(not necessary to short forever)
- Once the programming is successful, you can remove short and programming will be as any usual PSoC kit/Dvk
- If the programming is failing then remove the "Use optional XRES" under systems in Design Wide Resources of your project.
For the first time programming, PSoC's XRES has to be used. Hope this helps.