Thank you for kind reply.
I am trying to write or read the data. and i added component successfully
and i found a useful post -> Re: Erasing Flash sectors in KL25 on the Freedom Board.
and i successfully write and read a data at first time. but it didn't work at second time
while debugging, i found that in UnhandledInterrupt, the process stoped.
can i get a answer about this problem? it's my code, and debugging window.
thank you very much
------------------------------------------------------------------------------------------------------------------------------------------------------
uint8 FromPtr[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
uint8 ToPtr[6];
int OpStatus;
LDD_TError OpStatus;
LDD_TDeviceData* FLASH1Pointer;
FXAS2100X_calib(I2C_DeviceData);
FLASH1_Erase(FLASH1Pointer, 0xFFFFA, 0x6); //erase
do {
FLASH1_Main(FLASH1Pointer);
OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
FLASH1_Write(FLASH1Pointer, FromPtr, 0xFFFFA, 0x6); //write
do {
FLASH1_Main(FLASH1Pointer);
OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
FLASH1_Read(FLASH1Pointer,0xFFFFA, ToPtr, 0x6); //read
do {
FLASH1_Main(FLASH1Pointer);
OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
------------------------------------------------------------------------------------------------------------------------------------------------------
