Since you are using a trainer board, this might not be the cause; but I use breadboards, and I find the ICD works reliably only when I have a decoupling cap (0.1 uf) across Vdd and Vss.

Regards,

Anand