Hello,
I am working on a project using the S32K148 and I’m experiencing issues when setting up the linker file of the project.
When setting up the linker file to utilize all the ram as described in the S32K1xx_Memory_Map sheet, and as shown in S32K148 example projects, the project gets stuck in the .LC4 section in the NXP-provided startup file startup_S32K148.S. Additionally, when stuck in the .LC4 section and I put a breakpoint on one of the lines above the .LC4 section, and resume running the project, the projects ends up stopping at the breakpoint, indicating that the project is resetting.

However, if I decrease the size of the SRAM by 11 KB or more, the project runs as it should without getting stuck in the startup, and it is possible to either decreasing the size of the SRAM_U, or the SRAM_L – both cases makes it work as long as the total SRAM size we are decreasing with is 11 KB or more.
What can be the reason behind this issue, and why does it seem like the project is resetting when I try to use the full SRAM size that should be available?
Any help would be very much appreciated.
Best Regards,
Nils