System clock to be 100Mhz for LPC5536 for FLASH ERASE

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

System clock to be 100Mhz for LPC5536 for FLASH ERASE

Jump to solution
1,226 Views
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 Kudos
Reply
1 Solution
1,194 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,195 Views
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 Kudos
Reply
1,175 Views
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 Kudos
Reply