LPC55S69: Flash driver init ,12Mhz vs 96 Mhz

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

LPC55S69: Flash driver init ,12Mhz vs 96 Mhz

1,080件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

992件の閲覧回数
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 件の賞賛
返信