AnsweredAssumed Answered

Hardware failure after operations with FRDM-64F program memory flash

Question asked by Juandres Lazaro on Dec 11, 2015
Latest reply on Dec 16, 2015 by Alice_Yang

Dear,

 

 

I am performing read and write operations in the flash of my FRDM-64F. Using the fsl_flash KSDK 1.2.

I created the memory areas:

In execution of the erase flash operation. The FRDM-64F does not work anymore. Lost communication and does not accept the writing of new hardware:

The RESET LED is slightly access (apparently oscillating) and when you press the reset button it lights normally:

2015-12-11 18.03.12.jpg

 

2015-12-11 18.03.59.jpg

The event happened during debbug program in this passage:

result = flash_app_EraseSector (flash_app_destAdrss(1,&flash1_InitConfigAlarme),1,&flash1_InitConfigAlarme);


The function is:

uint32_t flash_app_EraseSector (uint32_t destAdrss, unsigned char qtdeSetor, FLASH_SSD_CONFIG *FlashBlk){

uint32_t result;

if(!qtdeSetor) qtdeSetor = 1; // Se for 0 ou não existir, assume 1.

INT_SYS_DisableIRQGlobal();

//result = FlashEraseSector(&flash1_InitConfig0, destAdrss, qtdeSetor * FTFx_PSECTOR_SIZE, g_FlashLaunchCommand);

result = FlashEraseSector(FlashBlk, destAdrss, qtdeSetor * FTFx_PSECTOR_SIZE, g_FlashLaunchCommand);

INT_SYS_EnableIRQGlobal();

return result;

}

 

What happened?

 

 

How to get back to normal?

 

Thank you and I hope me someone help me.

 

 

 

Juandres M. Lazaro

Outcomes