AnsweredAssumed Answered

Flash Access Error

Question asked by Renata Levinsky on Jul 17, 2017
Latest reply on Oct 20, 2017 by Abdullah Kahraman

I'am currently working with K26f processor with KDS3.2 and KSDSK v1.3. Core clock is 180Mhz,Flash Clock is 25.71 Mhz as Processor Expert recommends...

I imported Flash Driver component into my project,selected the address to erase in internal flash,but FlashErase () returns me error 0x20 - Flash Access Memory.Following is my code after importing "Flash Driver Component" from Component Library.


#define LAUNCH_CMD_SIZE 0x100
// Array to copy __Launch_Command func to RAM.
uint16_t ramFunc[LAUNCH_CMD_SIZE/2];


uint32_t destAdrss = (uint32_t *)0x0001efff ;
// Set command to RAM.
g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)RelocateFunction((uint32_t)ramFunc , LAUNCH_CMD_SIZE ,(uint32_t)FlashCommandSequence);
uint32_t result = FlashEraseSector(&flash1_InitConfig0,destAdrss,FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE,


result backs to me error 0x20 - Flash Access Error....

What's wrong here?

Thanks in advance.