S32K148: Getting stuck in startup when using full SRAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K148: Getting stuck in startup when using full SRAM

5,293件の閲覧回数
nilsmalmquist
Contributor II

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.

nilsmalmquist_0-1732116408896.png

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

0 件の賞賛
返信
7 返答(返信)

5,271件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Nils,

Can you share the two linker files?

 

Thank you

0 件の賞賛
返信

5,261件の閲覧回数
nilsmalmquist
Contributor II

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

タグ(1)
0 件の賞賛
返信

5,162件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

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?

 

 

0 件の賞賛
返信

5,073件の閲覧回数
nilsmalmquist
Contributor II

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

0 件の賞賛
返信

5,070件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

5,041件の閲覧回数
nilsmalmquist
Contributor II

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

タグ(1)

5,116件の閲覧回数
nilsmalmquist
Contributor II

Hi Daniel,

I'm using SDK version 2.2.0. I'll attach the startup-file that I'm using here as well. 

Best,

Nils

0 件の賞賛
返信