2265998_en-US

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

2265998_en-US

2265998_en-US

S32K310 SRAM overflowed

S32K3 AUTOMOTIVE-RTD 


This week, when I was building the peripherals for an S32K310 project in my IDE, it reported an SRAM overflow error.

khty_2-1766049415447.png


But, my project is brand new, and the main function is empty. There is no application code at all; I have only configured the necessary peripherals for my MCU.

I checked the demo_310.map file to determine what was causing the excessive memory usage.

khty_3-1766049731958.png

I found that one of the files within the RTD package is taking up a significant amount of SRAM space. The SRAM address range for K310 is from 0×20400000 to 0×20404000, but the address allocation has now reached 0x20404200.

The RTD/src/SchM_Gpt file alone occupies more than 2KB of space. Knowing that the external SRAM space for the S32K310 MCU is only 16KB, I believe there must be some issues within the RTD package.


I opened the corresponding file and found the issue shown in the figure below.

khty_4-1766050734693.png

As shown in the figure, in the file, the length of the variable definition is set to 4 . I understand that this was prepared for multi-core systems. However, in my current project using S32K310, which has only one core, the RTD package still sets the number of cores to 4. This results in the space occupied by variables being expanded by a factor of four.


After adjusting the core number configuration and rebuild the project, I can see that the space occupied by RTD/src/SchM_Gpt has decreased from 0x860 to 0x218, which is quite significant.

khty_6-1766051445731.png



So, please explain why a single-core device like the S32K310 still sets the number of cores to 4. Is this a bug?



The version I am using is as follows:

S32S32 Design Studio for  S32 Platform 3.6.2

S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_20250610

I have also uploaded my project files in the attachment for your confirmation.

I look forward to your reply very much because this is important to me.

Thank you.

Re: S32K310 SRAM overflowed

Hi@khty

I have reported this issue to the RTD design team, and it will take some time to get a response.

Re: S32K310 SRAM overflowed

Hi@khty

I received a reply from the design team, and they confirmed that this is a bug.

For now, you can manually change the number of cores to 1.

I will notify you again when there is an official workaround or version fix.

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎12-31-2025 06:26 AM
更新者: