EEE_DRV_InitEeprom() function call takes too long

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

EEE_DRV_InitEeprom() function call takes too long

2,089件の閲覧回数
alexShen_
Contributor I

MCU: MPC5775E

IDE : S32k Ds for power

EEE_DRV_InitEeprom() initialization takes 1.3 seconds at each power-up. I have configured 3 64k blocks for EEPROM. Is the initialization time of this eeprom normal? thanks

alexShen__0-1652434548992.pngalexShen__0-1652434548992.png

 

0 件の賞賛
返信
2 返答(返信)

2,062件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Alex,

the SDK documentation does not contain details about the timing, so let me share documentation for previous standalone version of the drivers - attached. Take a look at "5.1.1 Initialization/Read/Write Timings". MPC5775K is relatively close to MPC5775E, so we can use this one as a reference. This is the timing for three 16KB blocks. As you can see in the table, worst initialization timing is about 100ms. Because the erase time of 64KB is significantly higher:

lukaszadrapa_0-1652678524087.pnglukaszadrapa_0-1652678524087.png

... and because you can have much more data there, it can take much more time.

To ensure the highest possible performance, make sure that clocks are initialized to maximum before calling init function and also ensure that correct flash wait states are configured and that instruction cache is enabled:

https://www.nxp.com/docs/en/application-note/AN5191.pdf

Regards,

Lukas

0 件の賞賛
返信

2,035件の閲覧回数
alexShen_
Contributor I

Hi Lukas:

The clocks are initialized to maximum before calling init function.My test is based on the EEPROM Demo project. Use IO to test the EEE initialization time. EEE_Init() will take 1.3 seconds under the EEPROM with data.The following is my test project, thank you!

 

alexShen__0-1653294799440.pngalexShen__0-1653294799440.png

 

0 件の賞賛
返信