The schematic for the EDE702 uses a ceramic resonator, but your code comment suggests you are using a crystal.

Did you add two 22-27pF capacitors on the crystal?
<br>