This problem was caused by a problem with the generated Linker file.
In the linker_flash_c0_s32k324.ld file, as shown in the figure, the hardfault stopped occurring when the __RAM_CACHEABLE_SIZE value was changed to 0x12.
It seems that there is a problem with the project creation.
Can you tell me what the __RAM_SHAREABLE_SIZE, __RAM_NO_CACHEABLE_SIZE, and __RAM_CACHEABLE_SIZE values mean?
Please check if the values are correct.
