Thanks for your reply dana.
Yes, of course.
As I said I already programed my PSoC 1 time but now I can't detect him so I can't program him again.
Another possibility is device in programmer not target device used in
I have at times had to unplug USB connection and re-establish it.
The two devices are the same in programmer and project.
Connect XRES to Pin15 instead of pin22, see if that helps.
I will try before to check : Use Optionnal XRES pin because I didn't check it first time and if it doesn't work I will connect XRES pin of Jtag to pin 15.
I will tell you if it works :)
I still open to all other ideas :)
It's working now.I tried my idea and it's working, thanks to all of you :)