System clock to be 100Mhz for LPC5536 for FLASH ERASE

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

System clock to be 100Mhz for LPC5536 for FLASH ERASE

跳至解决方案
1,661 次查看
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,629 次查看
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,630 次查看
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,610 次查看
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 项奖励
回复