Hi, @danielmartynek
First of all, thank you for your reply. I've seen the two threads you mentioned before, and they don't seem to solve the problem. I would like to share with you my test results and questions I would like to ask you.
1. Unfortunately, the DFLASH (all backed up as EEPROM) data will still be erased by testing if I just preserve the partitioning.
In the flash algorithm file freescale_s32k144f512m15_pflash_dflash_eeprom.arp, as shown in the figure below, you can see that the Mass Erase directive might have been used, but I'm not sure if it had anything to do with it.

2. Surprisingly, if I just preserve the partitioning and used the Flash algorithm file nxp_s32k144f512m15_sector_erase.arp, the DFLASH data would not be erased.
So I want to know the difference between nxp_s32k144f512m15_sector_erase.arp and freescale_s32k144f512m15_pflash_dflash_eeprom.arp and whether all projects can be downloaded programs or debugged by nxp_s32k144f512m15_sector_erase.arp.
3. Another discovery when using nxp_s32k144f512m15_sector_erase.arp is that if you use Non-Volatile Memory Preservation to preserve DFlash, the download program still has errors. I think this is probably the reason why you can only use FlexRAM to access it.
If the PFLASH is preserved (for example, 0x0007f000-0x0007ffff), it performs fine, downloads the program successfully and can read the data previously written to the PFLASH.

In conclusion, If we can solve the problem with this,I want to confirm whether nxp_s32k144f512m15_sector_erase.arp can be used as freescale_s32k144f512m15_pflash_dflash_eeprom.arp :
1.) Is nxp_s32k144f512m15_sector_erase.arp the RTM version?
2.) What is the difference between nxp_s32k144f512m15_sector_erase.arp and freescale_s32k144f512m15_pflash_dflash_eeprom.arp ? Why do you need to provide two Flash algorithms?
Looking forward to your reply.
Best wishes,
Bob