2)接入PICkit3出现Target Device ID (00000000) does not match expected Device ID (00002460)
这是仿真头与线路板连接不正确。
------------------------------
3)首次使用PICkit3出现PK3Err0040
PK3Err0040: The target device is not ready for debugging.Please check your configuration bit settings and program the device before proceeding.
解决办法:在这里勾 选:Debugger>Settings>Program Memory>Automatically 的 “Program after successful build”项即可在每次成功后自动下载代码到Flash并进入调试就绪模式。