<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Configuring EEPROM in Kinetis KE18 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165968#M58445</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;SPAN&gt;CEPL_Dev&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What's the detail chip you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;The same as TWR-KE18F?MKE18F512VLL16?&lt;/P&gt;
&lt;P&gt;Please double check your board chip partnumber.&lt;/P&gt;
&lt;P&gt;Do you also test the SDK code directly any issues or not?&lt;/P&gt;
&lt;P&gt;SDK_2.8.0_TWR-KE18F\boards\twrke18f\driver_examples\flash\flexnvm_eeprom&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;KERRY&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 09:21:38 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-10-12T09:21:38Z</dc:date>
    <item>
      <title>Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1164426#M58393</link>
      <description>&lt;DIV&gt;I was trying to configure the Flash module of MKE18F512VLL16 MCU to be used as an EEPROM.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I followed the attached application note from NXP &lt;STRONG&gt;"How to use FlexMemory as D-Flash and EEPROM in KE1xF" &lt;/STRONG&gt;along with the datasheet as reference.&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;I encountered&amp;nbsp;a question when I was studying the FTFE flash module. Here in MKE1x,&amp;nbsp;Flash Common Command Object Registers (FTFE_FCCOBn) is used to write commands to be executed by the memory controller. The register structure is as follows, (command - Flash Address - Data Bytes).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here according to the datasheet, the register will take only 24 bits of data for Flash Address argument while the MCU has a 32 bit addressing scheme. This confused me. How do I write a command to erase/program a specific region with a 32 bit address while my register will allow me to write only 24 bits?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Keeping this question aside, I tried to study the FlexNVM EEPROM example (attached here) from NXP for the MKE18 controller, but I was unable to extract relevant read and write functions by solving the dependencies from the company provided SDK.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using Keil IDE for development. No RTOS - bare metal project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The following is the operation sequence which I was trying.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include "MKE18F16.h"                   // Device header
uint32_t read_data = 0;
uint32_t targetadd = 0;

void FlashInit(void){
    PCC-&amp;gt;PCC_FLASH |= PCC_PCC_FLASH_CGC_MASK;   /* Enable clock for flash */
    FTFE-&amp;gt;FSTAT = 0x30;     /* Clear error flags */
    FTFE-&amp;gt;FCCOB0 = 0x81;    /* Set FlexRam function to EEPROM */
    FTFE-&amp;gt;FCCOB1 = 0x00;    
    FTFE-&amp;gt;FSTAT = 0x80;     /* Launch Flash Command */
    while (!(FTFE-&amp;gt;FSTAT &amp;amp; FTFE_FSTAT_CCIF_MASK)); /* Wait untill command is completed */
}

void FlashEraseSector(uint32_t TargetAddress){
    FTFE-&amp;gt;FSTAT  = 0x30; /* Clear Error Flags*/
    FTFE-&amp;gt;FCCOB0 = 0x09; /* Flash Erase Sector Command */
    FTFE-&amp;gt;FCCOB1 = TargetAddress&amp;gt;&amp;gt;16;
    FTFE-&amp;gt;FCCOB2 = TargetAddress&amp;gt;&amp;gt;8;   
    FTFE-&amp;gt;FCCOB3 = TargetAddress;
    
    FTFE-&amp;gt;FSTAT = 0x80; /* Launch Command */
    while (!(FTFE-&amp;gt;FSTAT &amp;amp; FTFE_FSTAT_CCIF_MASK)); /* Wait till command is completed */
        
}

void FlashProgram(uint32_t TargetAddress, uint32_t Data){
    FTFE-&amp;gt;FSTAT  = 0xF0; /* Clear Error Flags */
    FTFE-&amp;gt;FCCOB0 = 0x0B; /* Flash Program Section Command */
    FTFE-&amp;gt;FCCOB1 = TargetAddress&amp;gt;&amp;gt;16;
    FTFE-&amp;gt;FCCOB2 = TargetAddress&amp;gt;&amp;gt;8;   
    FTFE-&amp;gt;FCCOB3 = TargetAddress;
    FTFE-&amp;gt;FCCOB4 = Data&amp;gt;&amp;gt;24;
    FTFE-&amp;gt;FCCOB5 = Data&amp;gt;&amp;gt;16;
    FTFE-&amp;gt;FCCOB6 = Data&amp;gt;&amp;gt;8;
    FTFE-&amp;gt;FCCOB7 = Data;
    
    FTFE-&amp;gt;FSTAT = 0x80; /* Launch Command */
    while (!(FTFE-&amp;gt;FSTAT &amp;amp; FTFE_FSTAT_CCIF_MASK)); /* Wait till command is completed */
}

void FlashRead(void){
    uint32_t* pnt    = (uint32_t*)targetadd;
    
	read_data   = *pnt;
}
int main(void){
    SystemInit();
    FlashInit();
    targetadd = 0x10000000; /*FlexRAM start address */
    FlashEraseSector(targetadd);
    FlashProgram(targetadd, 0x10);
    FlashRead();
    while(1){
        
    }   
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With this routine, I was not able to read back the data I've written.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1164426#M58393</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-10T06:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1164916#M58404</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried using the NXP SDK, but I'm getting the following dependency errors although I selected to auto resolve all pack requirements while including the drivers in the project. A lot of macros seem to be undefined.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="monospace"&gt;Rebuild started: Project: mke18_flash&lt;BR /&gt;*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'&lt;BR /&gt;Rebuild target 'Target 1'&lt;BR /&gt;assembling startup_MKE18F16.s...&lt;BR /&gt;compiling fsl_ftfx_flash.c...&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(82): warning: &amp;nbsp;#1296-D: extended constant initialiser used&lt;BR /&gt;&amp;nbsp; static volatile uint32_t *const kFPROTL = (volatile uint32_t *)(uint32_t)&amp;amp;FTFx_FPROT_LOW_REG;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(582): warning: &amp;nbsp;#186-D: pointless comparison of unsigned integer with zero&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (uint32_t i = 0U; i &amp;lt; (uint32_t)MAX_FLASH_PROT_REGION_COUNT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(617): warning: &amp;nbsp;#1296-D: extended constant initialiser used&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static volatile uint32_t *const kFPROTLx = (volatile uint32_t *)(uint32_t)&amp;amp;FTFx_FPROTL3_REG;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(633): warning: &amp;nbsp;#186-D: pointless comparison of unsigned integer with zero&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (regionCounter &amp;lt; (uint32_t)MAX_FLASH_PROT_REGION_COUNT)&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1147):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; config-&amp;gt;flashDesc.feature.hasXaccControl = FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1181):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_START_ADDRESS" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashStartAddress &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= FLASH0_FEATURE_PFLASH_START_ADDRESS; /* get P-Flash start address */&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1182):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashBlockSize &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = FLASH0_FEATURE_PFLASH_BLOCK_SIZE;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1183):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashBlockCount &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= FLASH0_FEATURE_PFLASH_BLOCK_COUNT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1184):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashBlockSectorSize &amp;nbsp; &amp;nbsp; = FLASH0_FEATURE_PFLASH_BLOCK_SECTOR_SIZE;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1185):&lt;SPAN&gt;&amp;nbsp;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashBlockWriteUnitSize &amp;nbsp;= FLASH0_FEATURE_PFLASH_BLOCK_WRITE_UNIT_SIZE;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1186):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashSectorCmdAlignment &amp;nbsp;= FLASH0_FEATURE_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1187):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashSectionCmdAlignment = FLASH0_FEATURE_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1222):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_RESOURCE_CMD_ADDRESS_ALIGMENT" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (uint8_t)FSL_FEATURE_FLASH_PFLASH_RESOURCE_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1225):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_CHECK_CMD_ADDRESS_ALIGMENT" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (uint8_t)FSL_FEATURE_FLASH_PFLASH_CHECK_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1228):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_SWAP_CONTROL_CMD_ADDRESS_ALIGMENT" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (uint8_t)FSL_FEATURE_FLASH_PFLASH_SWAP_CONTROL_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c(1274):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_PROTECTION_REGION_COUNT" is undefined&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pflashProtectionRegionCount = FLASH0_FEATURE_PFLASH_PROTECTION_REGION_COUNT;&lt;/SPAN&gt;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_flash.c: 4 warnings, 12 errors&lt;BR /&gt;compiling fsl_ftfx_controller.c...&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_controller.c(158): warning: &amp;nbsp;#1296-D: extended constant initialiser used&lt;BR /&gt;&amp;nbsp; static volatile uint32_t *const kFCCOBx = (volatile uint32_t *)(uint32_t)&amp;amp;FTFx_FCCOB3_REG;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_controller.c(197):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS" is undefined&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; config-&amp;gt;flexramBlockBase &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS;&lt;/SPAN&gt;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_controller.c(198):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_FLEX_RAM_SIZE" is undefined&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; config-&amp;gt;flexramTotalSize &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= FSL_FEATURE_FLASH_FLEX_RAM_SIZE;&lt;/SPAN&gt;&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\drivers\fsl_ftfx_controller.c: 1 warning, 2 errors&lt;BR /&gt;compiling main.c...&lt;BR /&gt;compiling fsl_ftfx_cache.c...&lt;BR /&gt;compiling system_MKE18F16.c...&lt;BR /&gt;compiling fsl_common.c...&lt;BR /&gt;compiling fsl_clock.c...&lt;BR /&gt;compiling fsl_ftfx_flexnvm.c...&lt;BR /&gt;compiling flash_adapter.c...&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\components\internal_flash\flash.h(93): warning: &amp;nbsp;#66-D: enumeration value is out of "int" range&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; kHAL_Flash_SecurityStateNotSecure &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 0xc33cc33cU, /*!&amp;lt; Flash is not secure.*/&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\components\internal_flash\flash_adapter.c(75):&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; uint32_t progBuf[PGM_SIZE_BYTE / sizeof(uint32_t)];&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\components\internal_flash\flash_adapter.c(193): e&lt;SPAN&gt;rror: &amp;nbsp;#20: identifier "FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE" is undefined&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; uint8_t buffer[PGM_SIZE_BYTE];&lt;BR /&gt;C:\Keil_v5\ARM\PACK\NXP\MKE18F16_DFP\12.2.0\components\internal_flash\flash_adapter.c: 1 warning, 2 errors&lt;BR /&gt;".\Objects\mke18_flash.axf" - 16 Error(s), 6 Warning(s).&lt;BR /&gt;Target not created.&lt;BR /&gt;Build Time Elapsed: &amp;nbsp;00:00:03&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1164916#M58404</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-10T06:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165094#M58405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81446" target="_self"&gt;CEPL_Dev&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; Do you test the NXP official SDK EEPROM code for TWR-KE18F:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SDK_2.8.0_TWR-KE18F\boards\twrke18f\driver_examples\flash\flexnvm_eeprom&lt;/P&gt;
&lt;P&gt;Whether this project can works on your side or not?&lt;/P&gt;
&lt;P&gt;You can use the NXP offical code at first.&lt;/P&gt;
&lt;P&gt;Any updated information, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 10:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165094#M58405</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-09T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165511#M58423</link>
      <description>&lt;P&gt;Yes, I tried using the SDK from NXP. I've attached the files in my question. The previous reply shows the errors that come when I try to compile my code with the SDK in it.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165511#M58423</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-10T06:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165518#M58424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CEPL_Dev,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Thanks for your updated information, you even have the orginal SDK project build issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;What's the SDK version you are using? and the MDK version you are using?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;I am using SDK_2.8.0_TWR-KE18F, MDK version is v5.29.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you check the SDK release note, you can find the request tools:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3 Development tools&lt;BR /&gt;The MCUXpresso SDK was compiled and tested with these development tools:&lt;BR /&gt;• IAR Embedded Workbench for Arm version 8.50.5&lt;BR /&gt;• MDK-Arm Microcontroller Development Kit (Keil)® 5.31&lt;BR /&gt;• Makefiles support with GCC revision 9-2019-q4-major GCC9 from Arm Embedded&lt;BR /&gt;• MCUXpresso IDE v11.2.0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; when I build the flexnvm_eeprom project. this is my result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rebuild started: Project: flexnvm_eeprom&lt;BR /&gt;*** Using Compiler 'V6.13.1', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'&lt;BR /&gt;Rebuild Project 'flexnvm_eeprom' - Target 'flexnvm_eeprom debug'&lt;BR /&gt;compiling clock_config.c...&lt;BR /&gt;compiling pin_mux.c...&lt;BR /&gt;compiling fsl_ftfx_controller.c...&lt;BR /&gt;compiling fsl_ftfx_cache.c...&lt;BR /&gt;compiling fsl_ftfx_flash.c...&lt;BR /&gt;compiling flexnvm_eeprom.c...&lt;BR /&gt;compiling board.c...&lt;BR /&gt;compiling fsl_ftfx_flexnvm.c...&lt;BR /&gt;compiling fsl_clock.c...&lt;BR /&gt;compiling fsl_common.c...&lt;BR /&gt;compiling fsl_gpio.c...&lt;BR /&gt;compiling fsl_smc.c...&lt;BR /&gt;compiling system_MKE18F16.c...&lt;BR /&gt;compiling fsl_debug_console.c...&lt;BR /&gt;compiling fsl_lpuart.c...&lt;BR /&gt;compiling fsl_str.c...&lt;BR /&gt;compiling fsl_assert.c...&lt;BR /&gt;compiling serial_manager.c...&lt;BR /&gt;compiling lpuart_adapter.c...&lt;BR /&gt;compiling serial_port_uart.c...&lt;BR /&gt;compiling generic_list.c...&lt;BR /&gt;assembling startup_MKE18F16.S...&lt;BR /&gt;linking...&lt;BR /&gt;Program Size: Code=8296 RO-data=2964 RW-data=8 ZI-data=2260 &lt;BR /&gt;"debug\flexnvm_eeprom.out" - 0 Error(s), 0 Warning(s).&lt;BR /&gt;Build Time Elapsed: 00:00:06&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, from your log, your compiler version is not correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127116i447D3B574821FA8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please also following the SDK_2.8.0_TWR-KE18F\docs\Getting Started with MCUXpresso SDK.pdf&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And test it again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any updated information, just kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:53:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165518#M58424</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-10T06:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165549#M58426</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The example project&amp;nbsp;@&amp;nbsp;SDK_2.8.0_MKE18F512xxx16\boards\twrke18f\driver_examples\flash\flexnvm_eeprom\mdk is compiling without any errors,&lt;/P&gt;&lt;P&gt;But when I try to add the NXP SDK Peripheral Driver to my project using the MDK Software Component Selector, I'm getting so many errors. I chose to "Auto Resolve" all dependencies when I selected the flash driver to add in to the project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CEPL_Dev_1-1602316441257.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127130iDDB2FD4ACC72EA53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CEPL_Dev_1-1602316441257.png" alt="CEPL_Dev_1-1602316441257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the build output with compiler v6.12.&lt;/P&gt;&lt;P&gt;Rebuild started: Project: mke18_flash&lt;BR /&gt;*** Using Compiler 'V6.12', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'&lt;BR /&gt;Rebuild target 'Target 1'&lt;BR /&gt;compiling fsl_ftfx_flexnvm.c...&lt;BR /&gt;compiling main.c...&lt;BR /&gt;compiling fsl_common.c...&lt;BR /&gt;compiling fsl_ftfx_cache.c...&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1147): error: use of undeclared identifier 'FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL'&lt;BR /&gt;config-&amp;gt;flashDesc.feature.hasXaccControl = FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1181): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_START_ADDRESS'&lt;BR /&gt;pflashStartAddress = FLASH0_FEATURE_PFLASH_START_ADDRESS; /* get P-Flash start address */&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(356): note: expanded from macro 'FLASH0_FEATURE_PFLASH_START_ADDRESS'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_START_ADDRESS FSL_FEATURE_FLASH_PFLASH_START_ADDRESS&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1182): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE'&lt;BR /&gt;pflashBlockSize = FLASH0_FEATURE_PFLASH_BLOCK_SIZE;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(358): note: expanded from macro 'FLASH0_FEATURE_PFLASH_BLOCK_SIZE'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_BLOCK_SIZE FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1183): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT'&lt;BR /&gt;pflashBlockCount = FLASH0_FEATURE_PFLASH_BLOCK_COUNT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(357): note: expanded from macro 'FLASH0_FEATURE_PFLASH_BLOCK_COUNT'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_BLOCK_COUNT FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1184): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE'&lt;BR /&gt;pflashBlockSectorSize = FLASH0_FEATURE_PFLASH_BLOCK_SECTOR_SIZE;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(359): note: expanded from macro 'FLASH0_FEATURE_PFLASH_BLOCK_SECTOR_SIZE'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_BLOCK_SECTOR_SIZE FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1185): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;pflashBlockWriteUnitSize = FLASH0_FEATURE_PFLASH_BLOCK_WRITE_UNIT_SIZE;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(360): note: expanded from macro 'FLASH0_FEATURE_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_BLOCK_WRITE_UNIT_SIZE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1186): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;pflashSectorCmdAlignment = FLASH0_FEATURE_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(361): note: expanded from macro 'FLASH0_FEATURE_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1187): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;pflashSectionCmdAlignment = FLASH0_FEATURE_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(362): note: expanded from macro 'FLASH0_FEATURE_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1222): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_RESOURCE_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;(uint8_t)FSL_FEATURE_FLASH_PFLASH_RESOURCE_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1225): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_CHECK_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;(uint8_t)FSL_FEATURE_FLASH_PFLASH_CHECK_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1228): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_SWAP_CONTROL_CMD_ADDRESS_ALIGMENT'&lt;BR /&gt;(uint8_t)FSL_FEATURE_FLASH_PFLASH_SWAP_CONTROL_CMD_ADDRESS_ALIGMENT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_flash.c(1274): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_PROTECTION_REGION_COUNT'&lt;BR /&gt;pflashProtectionRegionCount = FLASH0_FEATURE_PFLASH_PROTECTION_REGION_COUNT;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_adapter.h(363): note: expanded from macro 'FLASH0_FEATURE_PFLASH_PROTECTION_REGION_COUNT'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_PROTECTION_REGION_COUNT FSL_FEATURE_FLASH_PFLASH_PROTECTION_REGION_COUNT&lt;BR /&gt;^&lt;BR /&gt;12 errors generated.&lt;BR /&gt;compiling fsl_ftfx_flash.c...&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_controller.c(197): error: use of undeclared identifier 'FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS'&lt;BR /&gt;config-&amp;gt;flexramBlockBase = FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/drivers/fsl_ftfx_controller.c(198): error: use of undeclared identifier 'FSL_FEATURE_FLASH_FLEX_RAM_SIZE'&lt;BR /&gt;config-&amp;gt;flexramTotalSize = FSL_FEATURE_FLASH_FLEX_RAM_SIZE;&lt;BR /&gt;^&lt;BR /&gt;2 errors generated.&lt;BR /&gt;compiling fsl_ftfx_controller.c...&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(75): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;uint32_t progBuf[PGM_SIZE_BYTE / sizeof(uint32_t)];&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(79): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;if (((size &amp;amp; ((uint8_t)PGM_SIZE_BYTE - 0x01U)) != 0U) || ((dest &amp;amp; ((uint8_t)PGM_SIZE_BYTE - 0x01U)) != 0U))&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(79): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;if (((size &amp;amp; ((uint8_t)PGM_SIZE_BYTE - 0x01U)) != 0U) || ((dest &amp;amp; ((uint8_t)PGM_SIZE_BYTE - 0x01U)) != 0U))&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(86): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;(void)memcpy((void *)((uint32_t *)&amp;amp;progBuf[0]), (const void *)pData, PGM_SIZE_BYTE);&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(88): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;status = FLASH_Program(flashConfig, dest, (uint8_t *)progBuf, PGM_SIZE_BYTE);&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(94): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;pData += PGM_SIZE_BYTE;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(95): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;dest += PGM_SIZE_BYTE;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(96): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;size -= PGM_SIZE_BYTE;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(193): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;uint8_t buffer[PGM_SIZE_BYTE];&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(194): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;uint16_t bytes = (uint16_t)(dest &amp;amp; ((uint32_t)PGM_SIZE_BYTE - 1U));&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(200): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;uint16_t unalignedBytes = (uint16_t)PGM_SIZE_BYTE - bytes;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(207): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;(void)memcpy(buffer, (void *)((uint16_t *)(dest - bytes)), PGM_SIZE_BYTE);&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(210): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;status = HAL_FlashProgramAdaptation(halFlashHandle, dest - bytes, PGM_SIZE_BYTE, buffer);&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(217): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;dest += (uint32_t)PGM_SIZE_BYTE - bytes;&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(222): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;bytes = (uint16_t)(size &amp;amp; ~((uint8_t)PGM_SIZE_BYTE - 1U));&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(240): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;(void)memcpy(buffer, (void *)((uint32_t *)dest), PGM_SIZE_BYTE);&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(243): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE'&lt;BR /&gt;return HAL_FlashProgramAdaptation(halFlashHandle, dest, PGM_SIZE_BYTE, buffer);&lt;BR /&gt;^&lt;BR /&gt;C:/Keil_v5/ARM/PACK/NXP/MKE18F16_DFP/12.2.0/components/internal_flash/flash_adapter.c(22): note: expanded from macro 'PGM_SIZE_BYTE'&lt;BR /&gt;#define PGM_SIZE_BYTE FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE&lt;BR /&gt;^&lt;BR /&gt;17 errors generated.&lt;BR /&gt;compiling flash_adapter.c...&lt;BR /&gt;compiling fsl_clock.c...&lt;BR /&gt;assembling startup_MKE18F16.s...&lt;BR /&gt;compiling system_MKE18F16.c...&lt;BR /&gt;".\Objects\mke18_flash.axf" - 31 Error(s), 0 Warning(s).&lt;BR /&gt;Target not created.&lt;BR /&gt;Build Time Elapsed: 00:00:01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 07:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165549#M58426</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-10T07:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165580#M58428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CEPL_Dev,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; From your log, it seems you didn't add the header file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Please compare with the flexnvm_eeprom project to your own project, do you lack the header file or not?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;I think the Manage Run method issue, also related to the MDK IDE.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;So, you also can add the drivers directly to your own project, then add the header file manually.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; All the SDK drivers can be found in:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SDK_2.8.0_TWR-KE18F\devices\MKE18F16\drivers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 09:12:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165580#M58428</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-10T09:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165581#M58429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed all the files added through MDK and I tried manually adding the drivers from the folder you've specified.&lt;/P&gt;&lt;P&gt;Every time when I was building, I was getting dependency errors. I added around 7-8 header files the flash driver was asking and finally solved the dependencies. Still when building the project, I'm getting the following heap of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rebuild started: Project: mke18_flash&lt;BR /&gt;*** Using Compiler 'V6.12', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'&lt;BR /&gt;Rebuild target 'Target 1'&lt;BR /&gt;assembling startup_MKE18F16.s...&lt;BR /&gt;compiling main.c...&lt;BR /&gt;compiling system_MKE18F16.c...&lt;BR /&gt;fsl_ftfx_cache.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_cache.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(449): warning: In file included from...&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(648): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) |= PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(660): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) &amp;amp;= ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(674): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;return (((*(volatile uint32_t *)(uint32_t)name) &amp;amp; PCC_CLKCFG_INUSE_MASK) != 0UL) ? true : false;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert(reg &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;assert(0UL == (reg &amp;amp; PCC_CLKCFG_INUSE_MASK)); /* Should not change if clock has been enabled by other core. */&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;./fsl_clock.h(694): error: use of undeclared identifier 'PCC_CLKCFG_PCS_MASK'&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(694): warning: implicit declaration of function 'PCC_CLKCFG_PCS' is invalid in C99 [-Wimplicit-function-declaration]&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(700): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) = reg &amp;amp; ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_cache.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_cache.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(486): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;./fsl_common.h(524): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;1 warning and 17 errors generated.&lt;BR /&gt;compiling fsl_ftfx_cache.c...&lt;BR /&gt;fsl_ftfx_flash.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_flash.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(449): warning: In file included from...&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(648): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) |= PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(660): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) &amp;amp;= ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(674): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;return (((*(volatile uint32_t *)(uint32_t)name) &amp;amp; PCC_CLKCFG_INUSE_MASK) != 0UL) ? true : false;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert(reg &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;assert(0UL == (reg &amp;amp; PCC_CLKCFG_INUSE_MASK)); /* Should not change if clock has been enabled by other core. */&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;./fsl_clock.h(694): error: use of undeclared identifier 'PCC_CLKCFG_PCS_MASK'&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(694): warning: implicit declaration of function 'PCC_CLKCFG_PCS' is invalid in C99 [-Wimplicit-function-declaration]&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(700): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) = reg &amp;amp; ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_flash.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_flash.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(486): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;./fsl_common.h(524): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_flash.c(1147): error: use of undeclared identifier 'FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL'&lt;BR /&gt;config-&amp;gt;flashDesc.feature.hasXaccControl = FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL;&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_flash.c(1181): error: use of undeclared identifier 'FSL_FEATURE_FLASH_PFLASH_START_ADDRESS'&lt;BR /&gt;pflashStartAddress = FLASH0_FEATURE_PFLASH_START_ADDRESS; /* get P-Flash start address */&lt;BR /&gt;^&lt;BR /&gt;./fsl_ftfx_adapter.h(356): note: expanded from macro 'FLASH0_FEATURE_PFLASH_START_ADDRESS'&lt;BR /&gt;#define FLASH0_FEATURE_PFLASH_START_ADDRESS FSL_FEATURE_FLASH_PFLASH_START_ADDRESS&lt;BR /&gt;^&lt;BR /&gt;fatal error: too many errors emitted, stopping now [-ferror-limit=]&lt;BR /&gt;1 warning and 20 errors generated.&lt;BR /&gt;compiling fsl_ftfx_flash.c...&lt;BR /&gt;fsl_ftfx_controller.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(449): warning: In file included from...&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(648): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) |= PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(660): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) &amp;amp;= ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(674): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;return (((*(volatile uint32_t *)(uint32_t)name) &amp;amp; PCC_CLKCFG_INUSE_MASK) != 0UL) ? true : false;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert(reg &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;assert(0UL == (reg &amp;amp; PCC_CLKCFG_INUSE_MASK)); /* Should not change if clock has been enabled by other core. */&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;./fsl_clock.h(694): error: use of undeclared identifier 'PCC_CLKCFG_PCS_MASK'&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(694): warning: implicit declaration of function 'PCC_CLKCFG_PCS' is invalid in C99 [-Wimplicit-function-declaration]&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(700): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) = reg &amp;amp; ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_controller.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(486): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;./fsl_common.h(524): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_controller.c(197): error: use of undeclared identifier 'FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS'&lt;BR /&gt;config-&amp;gt;flexramBlockBase = FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS;&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_controller.c(198): error: use of undeclared identifier 'FSL_FEATURE_FLASH_FLEX_RAM_SIZE'&lt;BR /&gt;config-&amp;gt;flexramTotalSize = FSL_FEATURE_FLASH_FLEX_RAM_SIZE;&lt;BR /&gt;^&lt;BR /&gt;1 warning and 19 errors generated.&lt;BR /&gt;compiling fsl_ftfx_controller.c...&lt;BR /&gt;fsl_ftfx_flexnvm.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_flexnvm.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(449): warning: In file included from...&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(646): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(648): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) |= PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(658): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(660): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) &amp;amp;= ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert((*(volatile uint32_t *)((uint32_t)name)) &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(672): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(674): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;return (((*(volatile uint32_t *)(uint32_t)name) &amp;amp; PCC_CLKCFG_INUSE_MASK) != 0UL) ? true : false;&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;assert(reg &amp;amp; PCC_CLKCFG_PR_MASK);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(691): error: use of undeclared identifier 'PCC_CLKCFG_PR_MASK'&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;assert(0UL == (reg &amp;amp; PCC_CLKCFG_INUSE_MASK)); /* Should not change if clock has been enabled by other core. */&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(692): error: use of undeclared identifier 'PCC_CLKCFG_INUSE_MASK'&lt;BR /&gt;./fsl_clock.h(694): error: use of undeclared identifier 'PCC_CLKCFG_PCS_MASK'&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(694): warning: implicit declaration of function 'PCC_CLKCFG_PCS' is invalid in C99 [-Wimplicit-function-declaration]&lt;BR /&gt;reg = (reg &amp;amp; ~PCC_CLKCFG_PCS_MASK) | PCC_CLKCFG_PCS(src);&lt;BR /&gt;^&lt;BR /&gt;./fsl_clock.h(700): error: use of undeclared identifier 'PCC_CLKCFG_CGC_MASK'&lt;BR /&gt;(*(volatile uint32_t *)((uint32_t)name)) = reg &amp;amp; ~PCC_CLKCFG_CGC_MASK;&lt;BR /&gt;^&lt;BR /&gt;fsl_ftfx_flexnvm.c(10): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_flexnvm.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_controller.h(13): warning: In file included from...&lt;BR /&gt;./fsl_ftfx_features.h(18): warning: In file included from...&lt;BR /&gt;./fsl_common.h(486): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;./fsl_common.h(524): error: use of undeclared identifier 'NotAvail_IRQn'&lt;BR /&gt;if (NotAvail_IRQn == interrupt)&lt;BR /&gt;^&lt;BR /&gt;1 warning and 17 errors generated.&lt;BR /&gt;compiling fsl_ftfx_flexnvm.c...&lt;BR /&gt;".\Objects\mke18_flash.axf" - 72 Error(s), 4 Warning(s).&lt;BR /&gt;Target not created.&lt;BR /&gt;Build Time Elapsed: 00:00:01&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 10:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165581#M58429</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-10T10:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165717#M58437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CEPL_Dev&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Send me your modified MDK project, I will help you to check it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 02:25:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165717#M58437</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-12T02:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165785#M58440</link>
      <description>&lt;P&gt;Here's a new MDK project I've created with no user code. I just added the necessary files for the flash driver and compiled the project it's not compiling.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 04:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165785#M58440</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-12T04:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165815#M58441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81446" target="_self"&gt;CEPL_Dev&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; I checked your project, also have the issues, it should be related to the MDK packs compatibility with the SDK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;Do you mind to use the SDK flexnvm_eeprom mdk project directly?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;I use the MCUXPresso CFG tool clone one flexnvm_eeprom mdk project, it can be build correctly directly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;You can based on that project, if you want to change the name, you can modify it directly, and if you want to delete some files, you also can delete it, this project is totally from the SDK and compatible with the SDK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; I attached the MDK project directly, please check it on your side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 05:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165815#M58441</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-12T05:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165855#M58442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried building the project you've given. It's compiling successfully without any errors, however when I tried to load it to a MKE18F512VLL16 micro-controller, the code execution halted at the initialization stage. I checked in debug mode by stepping line by line and found out that the code is looping among the below mentioned addresses. Please see the disassembly window of the following screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CEPL_Dev_0-1602485498252.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127211i64F6B7B67EC1DD83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CEPL_Dev_0-1602485498252.png" alt="CEPL_Dev_0-1602485498252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I didn't modify the project you've given. I just built it and downloaded it to the MCU as it is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 06:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165855#M58442</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-12T06:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165968#M58445</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;SPAN&gt;CEPL_Dev&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What's the detail chip you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;The same as TWR-KE18F?MKE18F512VLL16?&lt;/P&gt;
&lt;P&gt;Please double check your board chip partnumber.&lt;/P&gt;
&lt;P&gt;Do you also test the SDK code directly any issues or not?&lt;/P&gt;
&lt;P&gt;SDK_2.8.0_TWR-KE18F\boards\twrke18f\driver_examples\flash\flexnvm_eeprom&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;KERRY&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 09:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165968#M58445</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-12T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165993#M58446</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using &lt;STRONG&gt;MKE18F512VLL16.&amp;nbsp;&lt;/STRONG&gt;I tried uploading the example from&amp;nbsp;&lt;SPAN&gt;SDK_2.8.0_TWR-KE18F\boards\twrke18f\driver_examples\flash\flexnvm_eeprom.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The same problem posted above persists.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 10:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1165993#M58446</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-12T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1166445#M58466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CEPL_Dev,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;TWR-KE18F board is also using :&lt;/SPAN&gt;&lt;SPAN&gt;MKE18F512VLL16&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Please check your board schematic, do you use the external 8Mhz crystal?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127305iEFCBDF9D7CFDC581/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The SDK code is using the external 8Mhz crystal as the clock source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, please check your board at first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any updated information, just kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 03:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1166445#M58466</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-13T03:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1166478#M58469</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I was using internal oscillator in my design. Removing the board specific initializations from the SDK code solved the issue. However I'm not going to use this in my MDK project.&lt;/P&gt;&lt;P&gt;I'm moving from Keil MDK to MCUXpresso&amp;nbsp; as our primary tool for development with Kinetis MCUs as recommended by everyone from NXP. I hope that will be a wiser decision in long run to avoid SDK related issues and to achieve better time to market.&lt;/P&gt;&lt;P&gt;Thank you so much for helping me out.&lt;/P&gt;&lt;P&gt;Good Day!&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 05:23:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1166478#M58469</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-13T05:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1166561#M58472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;CEPL_Dev&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks let me know you already make it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can use the MCUXPresso IDE, as this IDE is from NXP, we have a team to support it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 07:31:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1166561#M58472</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-10-13T07:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring EEPROM in Kinetis KE18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1167441#M58497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I just found out what went wrong with my bare-metal code. I was not partitioning the FlexMemory for using as EEPROM. Writing to EEPROM after sending the partitioning command solved the issue.&lt;/P&gt;&lt;P&gt;SDK for keil still have the issues. I'm working with MCUXpresso right now. There are no SDK related issues in MCUXpresso.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 12:06:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-EEPROM-in-Kinetis-KE18/m-p/1167441#M58497</guid>
      <dc:creator>CEPL_Dev</dc:creator>
      <dc:date>2020-10-14T12:06:37Z</dc:date>
    </item>
  </channel>
</rss>

