Hello there smart people,
we are currently developing our bootloader for the S32K324 and use theMemAcc with the underlying Mem_43_INFLS driver from the S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 4.0.0 P19 driver package.
There I noticed that the MemAcc_Write() function works flawlessly as long as I write data into the Data-Flash section. As soon as I have a code flash section that I want to write to the drive does write between 16-Byte and 128-Byte of data before resulting in a Hardfault.
I allready checked the HFSR and it states an FORCED Hardfault and the BFSR does show an IMPRECISERR.
The memoryaddress I try to write is th 0x440000 - 0x442000. a codeflash section wich is aligned to the 8k sector boundary and after flashing still uninitialized. So it contains only 0xFF.
I try to switch to the C40 Driver for a testrun and there the Flash didn't accept any data while the driver returned STATUS_SUCCESS. But here a hardfault didn't happen.
Does anybody has an Idea how I can further debug my problem?