You should set the voltage regulator to 1.8V.
void NVMSetup(void)
{
crmVRegCntl_t VRegCntl;
nvmType_t NvmType;
VRegCntl.vReg = g1P8VReg_c;
VRegCntl.cntl.vReg1P8VEn = TRUE;
CRM_VRegCntl(&VRegCntl);
DelayMs(1);
NVM_Detect(gNvmInternalInterface_c, &NvmType);
CRM_VREG_CNTL.vReg1P8VEn = 1;
while(!CRM_VRegIsReady(V_REG_MASK_1P8V)); //wait ready
}
This is necessary to enable read/write flash memory according to the documentation. It has something to do with powersaving when the flash memory is not needed anymore it shuts down the regulators.