Currently, I am using EB to configure DFlash read/write, and when I use the demo provided by EB to read/write, there is a situation that the txbuffer and rxbuffer data can not be corresponded to each other, or there are some locations in memory where the corresponding data is not written.
My current environment
device: S32K312 172pin
RTD: SW32K3_S32M27x_RTD_R21-11_6.0.0_D2506
Sector of operation: 0x100A0000
In the zip is the XDM file and main.c for mem and fls that I configured.
Okay, the solution is useful to click on "Accepted Solution", which can be used as a reference for those who follow it.
I changed the address of Mem Access Code Erase, write as you gave and it works. Thank you for your help.
You can check the MCRS- >RWE to check if a RWE error is the cause.
You can refer to the settings in this picture before testing
Reference solutions for similar problems
1. The file configuration you provided still has errors, I made changes:
2. I enabled CACHE.
Results of the test:
Attached is the compiled elf file, you can test it yourself.
Hi!
I resend an XDM file. At the same time, when I use MEM for PFLASH reading again, there is a hardfault when I operate the section 0x00400000-0x004FFFFF, so I modified the configuration in EB to read and write after operating the 0x00500000 address, but the reading and writing also occurs when there are no writes or incorrect read data.
The zip contains the xdm file, main and ld files
I opened the config file you provided and I opened it I realized that it doesn't match up ah, it's wrong.