AnsweredAssumed Answered

LPC54608 flashiap

Question asked by 実 奥山 on Dec 1, 2018
Latest reply on Dec 4, 2018 by Kerry Zhou

I wrote the MAC address in flash using flashiap.

Below was made based on a sample of NXP.

MAC address  was included in page_buf, and copied this in a flash.

But I don't understand the way to read this data from a flash.

Please tell me the way to read data of a flash using flashiap.

 

 

    /* Program sector */
    for (i = 0; i < (FSL_FEATURE_SYSCON_FLASH_SECTOR_SIZE_BYTES / FSL_FEATURE_SYSCON_FLASH_PAGE_SIZE_BYTES); i++)
    {
        FLASHIAP_PrepareSectorForWrite(7, 7);
        FLASHIAP_CopyRamToFlash(
            //FSL_FEATURE_SYSCON_FLASH_SECTOR_SIZE_BYTES + (i * FSL_FEATURE_SYSCON_FLASH_PAGE_SIZE_BYTES), &page_buf[0],
            0x38000 + (i * FSL_FEATURE_SYSCON_FLASH_PAGE_SIZE_BYTES), &page_buf[0],
            FSL_FEATURE_SYSCON_FLASH_PAGE_SIZE_BYTES, SystemCoreClock);
    }

Outcomes