This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28027操作FASH的问题



F28027在使用的时候,只要配置了PIE模块就不能操作FLAH,请问是什么原因?

void HAL_setupPie(HAL_Handle handle)
{
HAL_Obj *obj = (HAL_Obj *)handle;


PIE_disable(obj->pieHandle);

PIE_disableAllInts(obj->pieHandle);

PIE_clearAllInts(obj->pieHandle);

PIE_clearAllFlags(obj->pieHandle);

PIE_setDefaultIntVectorTable(obj->pieHandle);

PIE_enable(obj->pieHandle);

return;
} // end of HAL_setupPie() function

在此函数之前可以擦除操作FLASH,之后不行,开始估计是打开了PIE模块,但是关断后运行也不行,也就是说只要运行过以上代码后面补管怎么操作都不能操作FLASH。