imx6sx DDR cacheability

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

imx6sx DDR cacheability

跳至解决方案
1,136 次查看
catalinzafiu
Contributor I

Hello Everybody,

I have a bare-metal code running on M4 core.

The core executes, from DDR, much slower than expected, that means more than 10 times slower than executing from TCM.

I suspect the cache is not properly configured.

The cache controller is enabled using the LMEM_EnableSystemCache() and LMEM_EnableCodeCache() provided by NXP on FreeRTOS example.There is no effect for execution time after calling LMEM functions.

I did not find anything about cacheability.

Is there any way to define/check the DDR cacheability for M4? I mean to define DDR regions as cacheable/non-cacheable.

Thanks

标签 (1)
0 项奖励
1 解答
857 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  The base address of LMEM is 0xE008_2000.

The RM in section 13.11 (LMEM Memory Map/Register Definition) contains

misprints.

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

5 回复数
858 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  The base address of LMEM is 0xE008_2000.

The RM in section 13.11 (LMEM Memory Map/Register Definition) contains

misprints.

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

857 次查看
catalinzafiu
Contributor I

Thanks Yuri,

I have updated the base address. The cache is working now, the execution time is as expected.

After enabling the cache, the Segger J-Link debugger seems not able to stop in breakpoints. Do you have any hint for that?

Regards,

Catalin

0 项奖励
857 次查看
johnesmith
Contributor II

Hi, as I understood the cacheability has effect on the whole DDR region, right? Is it possible to enable the cacheability for a specified DDR region?

0 项奖励
857 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  perhaps the problem concerns with the fact, that cache coherency

is not provided in i.MX6 SX. The debugger is working in physical addresses.

Regards,

Yuri.

0 项奖励
857 次查看
catalinzafiu
Contributor I

Thanks Yuri

0 项奖励