LPC55xx Flash Access

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC55xx Flash Access

跳至解决方案
1,033 次查看
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

标签 (2)
0 项奖励
回复
1 解答
1,021 次查看
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 项奖励
回复
1 回复
1,022 次查看
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 项奖励
回复