Regarding the RAM location for the s32k312

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

Regarding the RAM location for the s32k312

ソリューションへジャンプ
210件の閲覧回数
vinaychitturi
Contributor II

Hello,

Currently In our project we are using s32k312 micro, According to that micro data sheet regarding the RAM location it is showing 192kb. But in that SRAM is having 96kb and DTCM is having 64 kb.

So i would like to know who is the using the remaining size of the ram location?

What kind of data does the DTCM and ITCM memory locations stored? Is there any particular RTD's or Peripherals which are using those memory sections.

Currently for our project we are running out of SRAM location, Can we use the Memory of the DTCM for that SRAM?

0 件の賞賛
1 解決策
135件の閲覧回数
vinaychitturi
Contributor II

Thanks daniel for the response.

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
157件の閲覧回数
vinaychitturi
Contributor II

Hello Daniel,

Sorry for the late response. I am out of office for few days. 

Thanks for sharing the code. I looked into that code and I understood how we can use the DTCM and ITCM memory locations.

In our project i want to use some portion of that DTCM memory for the sram memory. 

SO I created a new section for the dtcm_sram in linker file and assigned the section as shown below.

.dtcm_sram_data : AT(__sram_data_rom_end)
{
. = ALIGN(4);
__dtcm_sram_data_begin__ = .;
. = ALIGN(4);
*(.ramcode)
. = ALIGN(4);
*(.data)
*(.data*)
. = ALIGN(4);
*(.mcal_data)
. = ALIGN(4);
__dtcm_sram_data_end__ = .;
} > int_dtcm_sram
__dtcm_sram_data_rom_end = __sram_data_rom_end + (__dtcm_sram_data_end__ - __dtcm_sram_data_begin__);

I am sharing the modified linker file and the project. 

Can you please let me know whether the changes are proper or not? and let me know whether can I use the DTCM memory in the way I am using it right now.

 

0 件の賞賛
144件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @vinaychitturi,

I'm out of office, I cannot test it, but I don't see any issues in that.

 

Regards,

Daniel

0 件の賞賛
136件の閲覧回数
vinaychitturi
Contributor II

Thanks daniel for the response.

0 件の賞賛
188件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @vinaychitturi,

There is 96KB of SRAM, 32KB of ITCM and 64KB of DTCM.

Have a look at the default linker file of RTD projects.

danielmartynek_0-1716982560910.png

DTCM is used for the stack.

 

Refer to this example:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-Siul2-Port-Ip-Example-S32K344-ITCM-DTCM-S32...

 

Regards,

Daniel

 

 

0 件の賞賛