In what scenarios would the backdoor method be used to access ITCM and DTCM for S32K312?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

In what scenarios would the backdoor method be used to access ITCM and DTCM for S32K312?

跳至解决方案
336 次查看
Chris-Sun
Contributor II
1. I am currently using the TCM of S32K312, which is a single-core processor.
However, the memory map provides addresses for ITCM_0 Backdoor and DTCM_0 Backdoor. What are their use cases? I think Direct method is sufficient for S32K312.
 
2. If I use ITCM_0 Backdoor and DTCM_0 Backdoor, do I need to add definitions in the MEMORY and SECTION sections of linker_flash_s32k312.ld?
Does anyone know where I can obtain a demo for accessing ITCM and DTCM using the Backdoor method?
Thanks a lot.
0 项奖励
1 解答
309 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

1. I am currently using the TCM of S32K312,

The reason is that only core has direct access as master. Other masters like DMA need to access the TCM memory via backdoor.

2. If I use ITCM_0 Backdoor and DTCM_0 Backdoor, do I need to add definitions in the MEMORY and SECTION sections of linker_flash_s32k312.ld?
Does anyone know where I can obtain a demo for accessing ITCM and DTCM using the Backdoor method?

You can have a look at the example here.

https://community.nxp.com/t5/S32K/DTCM-ITCM-example/m-p/1606827#M21008

Best regards,

Peter

在原帖中查看解决方案

0 项奖励
2 回复数
310 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

1. I am currently using the TCM of S32K312,

The reason is that only core has direct access as master. Other masters like DMA need to access the TCM memory via backdoor.

2. If I use ITCM_0 Backdoor and DTCM_0 Backdoor, do I need to add definitions in the MEMORY and SECTION sections of linker_flash_s32k312.ld?
Does anyone know where I can obtain a demo for accessing ITCM and DTCM using the Backdoor method?

You can have a look at the example here.

https://community.nxp.com/t5/S32K/DTCM-ITCM-example/m-p/1606827#M21008

Best regards,

Peter

0 项奖励
236 次查看
Chris-Sun
Contributor II

Hi @petervlna 

Thank you for your response to my post.

Your response resolved my confusion.
 

Best regards,
Chris

0 项奖励