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.

Wrong answer to Fapi_doBlankCheck() when called repetitive

Hi @ all,

are there any known issues when calling Fapi_doBlankCheck() repetitive (Flash API 2.01.00)?

I have some problems when doing the blank check, erasing (if necessary) and recheck.

Here is the code snippet I used to reproduce the error:

// f021_Address = 0xf0200000;

// EEPROM_USER_SIZE = 16000;

f021_Res = Fapi_doBlankCheck( f021_Address, (uint32) EEPROM_USER_SIZE/4, &f021_State );

if ( f021_State.au32StatusWord[3] == 1 ){

while( len<EEPROM_USER_SIZE ){

res = EEPROMEraseSector( EEPROM_START+len ); // function according to suggestions FLASH REF GUIDE

if ( res != EEPROM_WRITE_SUCCESS )

return res;

len = len+EEPROM_SEC_SIZE;

}

while( f021_State.au32StatusWord[3] == 1 ){

f021_Res = Fapi_doBlankCheck( f021_Address, (uint32) EEPROM_USER_SIZE/4, &f021_State );

}

 

When using this code, often the execution is locked in the 2nd while-statement although the flash sector is filled with 0xffffffffff (check with debugger in CCS 6.0.1.00040).