Hi Koossa,

The good news is - config settings look fine. XT osc, WDT on, PWRT on, brownout on,
LVP off, protection off. Looking good here if you're using a 4MHz external crystal.

The bad news is - this code isn't anywhere near what you show above just trying to
toggle an LED.

It sets up the USART for 19,200bps at 4MHz, shoots out a single letter f, then sits & spins
waiting for serial data input, in a loop watching the RCIF flag bit.

Are you 100% sure you're actually programming the file you expect into your 877?

The .HEX file you have attached is for sure not the one you show above trying to toggle
an LED....;o}