Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Dear,
In my project, The Application calls the Flash API functions to program flash, the Flash API guide Version 1.56.01.00 . Calling the program function Fapi_issueProgrammingCommand can return success,but the
following ,calling the verify function Fapi_doVerify ,it returns Fapi_Error_Fail. Details as follow,
u32Databuffer = (uint32*)u16Databuffer;
...
oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)u32Index,u16Databuffer, 8, 0, 0, Fapi_AutoEccGeneration);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
if(oReturnCheck != Fapi_Status_Success)
{
PROGRAM_FAIL;
}
// Read FMSTAT register contents to know the status of FSM after
// program command for any debug
oFlashStatus = Fapi_getFsmStatus();
// Verify the values programmed. The Program step itself does a verify
// as it goes. This verify is a 2nd verification that can be done.
oReturnCheck = Fapi_doVerify((uint32 *)u32Index,4, u32Databuffer, &oFlashStatusWord);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
if(oReturnCheck != Fapi_Status_Success)
{
VERIFY_FAIL;
}
where is the problem?
Thanks for your help.