If you are are using MPSAM and you have the correct chip selected in MCS then try

Code:
@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON
and then add then line
Code:
DEFINE OSC 20
See if that works