I had a problem with using the official development board TWR-KE18F's EEPROM, and the main chip used was MKE18F512VLL16, hoping to get directions.
The questions are as follows: I used the official routine
I can only write 32BYTE data and show that it has been partitioned. The chip is in a non safe mode. I will do the partition operation. The partition code is as follows:
int partition_flash(int eeprom_size,int dflash_size)
while(!(FEFx->FSTAT & FEFx_FSTAT_CCIF_MASK));
Compile and run, found the re partition is not used, EEPROM size has been 32BYTE, FLASH all erase, I'm afraid the chip will be damaged, how to re partition, thank you very much.