S32k118:Does the Dflash EMU EEPROM backup area have any page flipping operations?

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

S32k118:Does the Dflash EMU EEPROM backup area have any page flipping operations?

Jump to solution
977 Views
ZEROOO
Contributor IV

Hello,

    After configuring flexram as an emu EEPROM, will there be page flipping in the flexnvm area, namely the Dflash? Although this is handled by the hardware's own emuEEPROM management system, I would like to know if page flipping occurs during this process. If it does, how long does the page flipping process take and will it block other programs? This is very important for my current development. Could you please provide an answer?

0 Kudos
Reply
1 Solution
745 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @ZEROOO,

During the operation, the CCIF flag is cleared, and the flash block must not be accessed—so yes, it does block it.

 

BR, Daniel

View solution in original post

6 Replies
961 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ZEROOO,

Yes, the state machine is responsible for moving valid records from one sector to another and erasing sectors that contain only invalid records.

This process is handled in the background.

When a new record is written to the Emulated EEPROM (EEE) via FlexRAM, the Command Complete Interrupt Flag (CCIF) is cleared. This indicates that a flash command is in progress.

Once the CCIF flag is set again, it means that all background operations on the backup flash have completed.

The S32K1xx datasheet provides the maximum execution time for these operations.

Table 35. Flash command timing specifications for S32K14x series.

 

BR, Daniel

0 Kudos
Reply
960 Views
ZEROOO
Contributor IV

Hello @danielmartynek 

    The information you provided is very useful. However, I'm not sure if the following time parameter includes the page flipping time of the hardware emu eeprom. Although this process is automatically completed, I'm worried that a too long page flipping time might block the program's operation.

ZEROOO_0-1748945005150.png

Also, if a 32K Dflash is used as an EEPROM backup, it will be divided into several areas for page flipping. What is the size of each area?

 

0 Kudos
Reply
943 Views
danielmartynek
NXP TechSupport
NXP TechSupport

1. Let me double check the timing.

2. There are 2KB sectors:

danielmartynek_0-1748956652876.png

 

BR, Daniel

 

0 Kudos
Reply
828 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ZEROOO,

Based on the internal discussion, the CCIF flag may read as 0 for up to twice the maximum specified time (in cases involving cleanup operations). This is documented in footnote 4 of the specification.

danielmartynek_0-1749717605793.png

 

BR, Daniel

 

0 Kudos
Reply
759 Views
ZEROOO
Contributor IV

Hi @danielmartynek 

    Your answer has been very helpful to me. I would like to ask if the internal page flipping of flexnvm will block the program. From the icon you provided, the time consumed is at the millisecond level.

    

0 Kudos
Reply
746 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @ZEROOO,

During the operation, the CCIF flag is cleared, and the flash block must not be accessed—so yes, it does block it.

 

BR, Daniel