Assuming you are using a 4 MHz crystal:

Have you set "XT OSC" when programming the device?

if so

Do the capacitor values match your crystal?

One of the most common problems is: the oscillator does not start.

rgds