I have encountered the following problem on a device with S32k148. The program flash memory from 0x9000 do 0x918f (400Bytes) cannot be read (via J-link or GDB debugger) and software read access cause an exception.
History of the MCU is the following:
I have tried to read out the flash by J-link.
The range 0x00000000 - 0x00008FFF can be read and the content is correct (equal to written image).
The range 0x00009190 - 0x0017FFFF can be read and the content is correct.
Attempt to read any byte in the range 0x00009000 - 0x0000918F fails.
The problem is not caused by flash protection. The read flash configuration is:
I tried to attach debugger (VisualGDB connected via J-link) without flashing.
The debugger is also not able to display the suspicious memory range 0x00009000 - 0x0000918F:
During the software execution, an exception occurs at the first read access of the suspicious range.
I do not know which exception occurred since default handler DefaultISR is not redefined (default startup_S32k148.S from SDK is used).
I have not tried to clear the suspicious flash yet.
I would like to ask anybody to any hint how to further analyze this problem and how to prevent it in the future.
I have several questions:
Thanks Libor Waszniowski
Solved! Go to Solution.
Hello Libor,
As we have discussed via email, there is FERSTAT[DFDIF] = 0x2, uncorrectable ECC error and a precise bus fault because of it.
Regards,
Daniel
Hello Libor,
As we have discussed via email, there is FERSTAT[DFDIF] = 0x2, uncorrectable ECC error and a precise bus fault because of it.
Regards,
Daniel