LPC55xx Flash Access

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,034件の閲覧回数
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,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 件の賞賛
返信
1 返信
1,023件の閲覧回数
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 件の賞賛
返信