LPC55xx Flash Access

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55xx Flash Access

Jump to solution
1,065 Views
yamakatb
Contributor III

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

Labels (2)
0 Kudos
Reply
1 Solution
1,053 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello yamakatb,

Yes, you are right.

By default, PREFEN is disabled, so maybe the iap_flash demo missing it.

 

 

View solution in original post

0 Kudos
Reply
1 Reply
1,054 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello yamakatb,

Yes, you are right.

By default, PREFEN is disabled, so maybe the iap_flash demo missing it.

 

 

0 Kudos
Reply