In the PBP manual under SERIN2, you'll find this note.
SERIN2 is not supported on 12-bit core PIC MCUs due to RAM and stack constraints.
The PIC16F505 has a 12-bit core.