https://diy.viktak.com/2013/11/quick-fix-mplab-x-cannot-connect-to-pickit2-or-pickit3.html
Quick fix: MPLAB X Cannot Connect to PicKit2 or PicKit3