I believe that the ICD uses the hardware UART of the target PIC to communicate with MCSP. My guess is that you can't do both - run the ICD AND use the hardware UART under your program control. The complier is raising an error when it sees the HSERIN/OUT command when compiling for ICD use.




Bookmarks