Specify a variable to be in a specific RAM region for mimxrt1064

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

Specify a variable to be in a specific RAM region for mimxrt1064

跳至解决方案
1,499 次查看
ruohaig
Contributor I

Hi,

 I was trying to manipulate with evkmimxrt1064_dev_video_virtual_camera_bm SDK example.

Does anyone know why a variable declared non-cacheable( should be in NCACHE_REGION, part of SDRAM) found in another memory area (DTCM, part of flexRAM) after compile, which causes memory overflow? 

 Does anyone know how to specify a variable to be in a specific RAM region for mimxrt1064?

 Thx

标记 (2)
0 项奖励
1 解答
1,369 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Ruohai Ge,

  Please open the MCUXPresso IDE install path, the related user guider:

C:\nxp\MCUXpressoIDE_11.1.0_3209\MCUXpresso_IDE_User_Guide.pdf

chapter 17.13 Placement of specific code/data Items

 You will find the detail method.

  You can define the noncache SDRAM area, then use this code:

__NOINIT(RAMn) char noinit_buffer[128];

RAMn is the noncacheable SDRAM area.

Please try it.

If you still have questions about it, please kindly let me know.

Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

3 回复数
1,369 次查看
ruohaig
Contributor I

Hi,

  I am not quite sure about that. "AT_NONCACHEABLE_SECTION_ALIGN(
static uint16_t s_frameBuffer[APP_FRAME_BUFFER_COUNT][DEMO_PANEL_HEIGHT][DEMO_PANEL_WIDTH],
DEMO_FRAME_BUFFER_ALIGN);", I declared such as variable. I thought this should be in the NCACHE_REGION, but instead, it is in the  SRAM_DTC ("RAM2" of this project)

  I am using mcuxpresso.

  Thank you very much.

0 项奖励
1,370 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Ruohai Ge,

  Please open the MCUXPresso IDE install path, the related user guider:

C:\nxp\MCUXpressoIDE_11.1.0_3209\MCUXpresso_IDE_User_Guide.pdf

chapter 17.13 Placement of specific code/data Items

 You will find the detail method.

  You can define the noncache SDRAM area, then use this code:

__NOINIT(RAMn) char noinit_buffer[128];

RAMn is the noncacheable SDRAM area.

Please try it.

If you still have questions about it, please kindly let me know.

Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,369 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Ruohai Ge,

    Do you evkmimxrt1064_dev_video_virtual_camera_bm SDK code non-cacheable variable located in the wrong place? Could you tell me more details about it, which variable?

   About how to specify a variable to be in a specific RAM region for mimxrt1064, please tell me your IDE, then I can help you to find the detail method.

Wish it helps you!.

If you still have question about it, please kindly let me know.

 

Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励