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.

F021移植到KEIL下 执行Fapi_EraseSector发生data abort问题.

HAL 04.04.00 生成TMS570LS for KEIL代码,移进F021代码后进行API调用 

Fapi_initializeFlashBanks(Freq_In_MHz);

Fapi_setActiveFlashBank((Fapi_FlashBankType)0);

Fapi_enableMainBankSectors(0xFF); 

均OK,但下一步执行

Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, 0xC000);

后直接进 _dabort 异常, 同时发觉目标区域的FLASH已被执行清空.

断点通过汇编跟进此API后又可单步执行出,不知是何原因,一头雾水.