System clock to be 100Mhz for LPC5536 for FLASH ERASE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

System clock to be 100Mhz for LPC5536 for FLASH ERASE

ソリューションへジャンプ
1,227件の閲覧回数
ja_lpc
Contributor III

1)

In LPC5536 manual its mentioned :

"Note: Flash ERASE and PROGRAM operations must be performed with a system clock below or equal to 100 MHz."

But when I went through the code sample in "flashiap", i see that the boot clock is set to 150MHZ.

But I don't see the clock being reduced to 100Mhz anywhere in this code before erasing flash region. Why is that so?

Is that already handled by the flash APIs (from BOOTLOADER_API_TREE_POINTER) 

 

2)

Also, where can I find the function definitions of these APIs? (for example 

BOOTLOADER_API_TREE_POINTER->flashDriver->flash_program())

0 件の賞賛
返信
1 解決策
1,195件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ja_lpc 

1) Maybe there is issue with  "flashiap", when you use flash ERASE and PROGRAM operations must be performed with a system clock below or equal to 100 MHz as UM said.

2) The flash API is ROM api, source code are not public.

 

BR

Alice

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,196件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ja_lpc 

1) Maybe there is issue with  "flashiap", when you use flash ERASE and PROGRAM operations must be performed with a system clock below or equal to 100 MHz as UM said.

2) The flash API is ROM api, source code are not public.

 

BR

Alice

0 件の賞賛
返信
1,176件の閲覧回数
ja_lpc
Contributor III
May be you can raise a ticket to fix this in flashiap.
Because that is being taken as reference example.
0 件の賞賛
返信