LPC55S69: Flash driver init ,12Mhz vs 96 Mhz

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC55S69: Flash driver init ,12Mhz vs 96 Mhz

180 Views
EugeneHiihtaja
Senior Contributor I

Hi !

Flash driver initialization require clock as part of init structure ( see fsl_iap.c )

status_t FLASH_Init(flash_config_t *config)
{
assert(VERSION1_FLASH_API_TREE);
config->modeConfig.sysFreqInMHz = (uint32_t)kSysToFlashFreq_defaultInMHz; // 96 Mhz
versionMajor = BOOTLOADER_API_TREE_POINTER->bootloader_version.major;
return VERSION0_FLASH_API_TREE->flash_init(config);
}

I have SystemClock 12 Mhz or 96 Mhz .

Should I reinit Flash driver all the time when SystemClock is changes ?

I mean before Erase/Program/Verify execution ?

Or 96Mhz values can be used at 12Mhz as well without problems ?

Regards,

Eugene

Labels (1)
0 Kudos
1 Reply

92 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Eugene Hiihtaja 

Normally,

when SystemClock  is initialized as 96MHZ and changes to 12Hhz, no need to re-initialize flash.

if SystemClock  is initialized as 12MHZ and changes to 96Hhz, you need re-initialize flash.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos