EEE_DRV_InitEeprom() function call takes too long

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

EEE_DRV_InitEeprom() function call takes too long

2,073 Views
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.png

 

0 Kudos
Reply
2 Replies

2,046 Views
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.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 Kudos
Reply

2,019 Views
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.png

 

0 Kudos
Reply