I have done SAF sCheck flash test on s32K3 EVB, it works well and test can pass.
But it goes fail after install HSE firmware.
The directly reason is when test flash ECC logic's single-bit error correction, it try to invalidate data cache by asm "STR R0,[R4,#0xF5C]", where R0 stores the flash test address and R4 stores 0xE000E000.
The value of flash test address changed to 0x0008000000000000 after execute that asm command in plain chip. But for HSE firmware installed chip, the address maintains its real value 0x50FA50FA50FA50FA, the makes the compare check failed.
So I want to know why HSE firmware influence that? How to solve this problem?