ICD is grayed out. What am I doing wrong?
assuming you have mcspx
the "NEW" icd model made with the creator needs to be place In the mecanique model directory

http://support.melabs.com/DT/INTOSC_ICD/INTOSC_ICD.html


and

you cannot icd compile code that uses hserout successfully you will get syntax errs [hserout2 is ok]

and

even if you could it still won't fit on a 18f14k22 as a icd version [compiled for 18f26k22 ] size is 30k [using hserout2 in lieu]

and

if you get rid of all the chronically wasteful lookup2 lines and replaced then with better code the file can be reduced by at least 12%
and easily fit the target chip