Hello,
I'm trying to save data to the built-in Flash using LPC5514.
I think that the SDK "iap_flash" is mainly helpful, but I found the following description in the Note of the manual.
"Associated prefetches should be disabled before issuing any Flash commands."
I think that prefetches can be disabled by setting PREFEN, but when I check iap_flash and the device driver, I can't find the corresponding code.
I think I need to disable prefetches before running APIs that access flash (FLASH_Erase, FLASH_Program, etc.), is this wrong?
Details
Device: LPC5514SDK Version: 2.8.2 (released 2020-08-19)
Host OS: Windows
Toolchain: IAR Embedded Workbench for ARM
Solved! Go to Solution.
Hello yamakatb,
Yes, you are right.
By default, PREFEN is disabled, so maybe the iap_flash demo missing it.
Hello yamakatb,
Yes, you are right.
By default, PREFEN is disabled, so maybe the iap_flash demo missing it.