S32K322 TCMs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K322 TCMs

1,957 Views
Akshat_VE02376
Contributor III

Hi NXP,
This is regarding the usage of DTCM-0 and DTCM-1 in S32K322.
In our current project we are having a single binary for both the cores which leads to the storage of all global variables which are mapped with DTCM, use up DTCM of core-0.
All the SafeOs task stacks are allocated to DTCM-0.
I have a few questions:
1. If TCB stacks of master core and slave core tasks are uninitialized and mapped to DTCM-0, then at runtime core-1's task would automatically use up dtcm-1 since both DTCMs have same address? If not-> follow point 2.
2. How exactly can we manually map the data section for slave core's stack to core-1's DTCM?

0 Kudos
Reply
5 Replies

1,940 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Akshat_VE02376,

CM7_0 has direct access to DTCM_0, while CM7_1 has direct access to DTCM_1.
CM7_1 cannot directly access DTCM_0; it can only do so via the backdoor interface

danielmartynek_0-1760430406233.png

Each core (CM7_0 and CM7_1) has its own linker file and startup code, which allows for independent allocation of stack and memory regions.

 

Regards,

Daniel

 

0 Kudos
Reply

1,748 Views
Akshat_VE02376
Contributor III
Hi Daniel,
Is there no way to have a single linker and use up core-1's (slave core) DTCM-1 when both cores are active?
I really need this clarification for a closure!!
0 Kudos
Reply

1,718 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Akshat_VE02376,

Yes, that is possible.

In RTD 2.0.0, there was this example: Platform_Multicore_SingleElf_S32K324

The example has just one linker file.

Install S32DS 3.4 and add RTD 2.0.0 so that you can create a project from that example.

 

Regards,

Daniel

0 Kudos
Reply

1,714 Views
Akshat_VE02376
Contributor III
Hi Daniel,
Can you please provide me with the corresponding link?
0 Kudos
Reply

1,673 Views
danielmartynek
NXP TechSupport
NXP TechSupport
0 Kudos
Reply