I see in your picture you are using an ATS040 crystal.

That is an AT Strip Cut type crystal, and may need to have a series resistor.

See Figure 12-1 in the 877 datasheet.

Just another possibility,
Darrel