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
Hi Nils,
Can you share the two linker files?
Thank you
Hi Daniel,
Certainly! Here are two linker files, one is where I use the full SRAM available, and the other one is one where the size of data_2 has been decreased with 11 KB which makes the project work.
Best,
Nils
Thanks Nils,
I understand you use the default startup_S32K148.S provided by NXP without any modification.
However, there are many of those. Can you specify the SDK version, or share the startup code as well?
Hello again Daniel,
Do you have any updates regarding this issue, now that I've provided the startup file that I'm using?
Best,
Nils
HI Nils,
I have been trying to reproduce it, but without any luck.
The oldest IDE I can use is S32DS 2.2 with SDK 3.0.0.
When I replace the linker file and the startup code in a SDK 3.0.0 project with your files, it works as expected, I don't see any issue.
Is there a reason you use such an old SDK? There have been many bugs fixed since SDK 2.0.0.
If I'm not able to reproduce it, I cannot debug it.
Maybe you can send the whole project (including compiled .elf).
If you don''t want to shere it here, use a support ticket.
Regards,
Daniel
Hi Daniel,
Thank you!
Regarding the IDE and SDK version I think there was a misunderstanding. However, I've been using S32 Design Studio 2.2.0 with SDK package 3.0.0.
I understand you need a project. We are not able to share our entire project, however I'm currently working on a simplified project that we can share with you. I will share this beginning of next week using a support ticket.
Best,
Nils