How to use DTCM_1 memory block in S32k322-not a backdoor DTCM memory

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

How to use DTCM_1 memory block in S32k322-not a backdoor DTCM memory

257件の閲覧回数
Lisha
Contributor III

Hi Team,

We are currently working on S32K322 and have a query regarding the usage of the DTCM memory blocks.

According to the reference manual/datasheet, the device provides two DTCM blocks (DTCM_0 and DTCM_1). However, in the provided linker file we see that only DTCM_0 is being used by default.

We would like to understand:

  1. How can we make use of the DTCM_1 block in our application?

  2. Are there any specific configuration steps required in the linker script or startup code to enable and map DTCM_1?

  3. Are there any restrictions or recommendations for assigning code/data between DTCM_0 and DTCM_1?
    Could you please provide guidance or an example on how to properly configure and use both DTCM blocks?

Your support will help us to effectively utilize the available memory resources. I have attached the snippets of the DTCM_1 Memory Block.

Lisha_0-1755511842361.png

 

BR,

Lisha Sweetha

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

226件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Lisha,

The S32K322 MCU features two application cores, designated as CM7_0 and CM7_1.

Each core has direct access to its own Tightly Coupled Memory (TCM):

  • CM7_0 accesses TCM_0
  • CM7_1 accesses TCM_1

Both DTCM0 and DTCM1 are mapped to the same address space: 0x20000000.

danielmartynek_0-1755519752710.png

CM7_0 can only access TCM_1 via a backdoor mechanism—it does not have direct access.

When you create a new S32K322 RTD project in the S32 Design Studio (S32DS) IDE, the IDE generates two separate projects, one for each core. Each project includes its own linker file, which defines memory sections such as int_dtcm, corresponding to the internal DTCM region for that core.

 

Regards,

Daniel

 

 

 

 

0 件の賞賛
返信

217件の閲覧回数
Lisha
Contributor III

Hi @danielmartynek ,

Thank you for your quick reply.

I am currently facing a HardFault issue. Specifically, when I configure the ITCM memory to its full size (64KB), the application escalates into a HardFault.

Could you please advise if there are any additional steps or limitations when using the complete ITCM block? 

Any guidance on how to correctly enable and utilize the full 64KB ITCM without encountering a HardFault would be very helpful.

Lisha_0-1755520995902.png

Lisha_1-1755521076421.png



BR,

Lisha

 

 

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

213件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Lisha,

There is just 32KB of ITCM_0.

danielmartynek_0-1755523620902.png

 

 

0 件の賞賛
返信