Suggest ways to run code from RAM instead of FLASH

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

Suggest ways to run code from RAM instead of FLASH

跳至解决方案
2,023 次查看
Pavani2
Contributor I

We using dual core in iMXRT1176.

As the execution time is critical ,we need to run the code from RAM instead of flash in CM7 core.

Kindly suggest ways to implement it.

0 项奖励
回复
1 解答
1,908 次查看
Habib_MS
NXP Employee
NXP Employee

Hello again @Pavani2,

I understand that you need to execute on RAM but obtaining the code from an external flash (this can be called Not XIP). If this is the case, you can activate the non XIP (or also disactivating the XIP mode) following this application note: How to Enable Non-XIP Boot on i.MX RT Series EVK (nxp.com).

Also, if you experience any issue, do not hesitate to let me know.

BR

Habib.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,890 次查看
Pavani2
Contributor I

Hi Habib_MS

 

Thank you for your reply.

1.IDE Version - MCUXpresso IDE-11.5.1-7266
 SDK Version - 2.11.1

 While using the dual core in IMXRT1175 in the above IDE,SDK versions we are facing an issue regarding addition of variables in global variables  window and to resolve we need to reset the perspective multiple times and sometimes we also need to restart the system. Is there any alternative to solve the this issue? while using single core there are no issues with the IDE.

 

 

 

 

 

0 项奖励
回复
2,009 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @Pavani2 ,

To run your application on RAM you have two options:

-You can change your project to run in RAM enabling this box when you create a new project:

Habib_MS_0-1717625188734.png

-If you already have a created project, you can enable this box in properties:

Habib_MS_1-1717625188737.png

Also, if you experience any issue, do not hesitate to let me know.

BR

Habib.

0 项奖励
回复
1,964 次查看
Pavani2
Contributor I

Hi, 

     With "Link Application to RAM" setting, When board is power off and on then my application doesn't run. So this setting doesn't work for me.

Our board has external QSPI Flash to store the  code image.  During power on BootROM should copy code image from flash to ITCM RAM.

I am using dual cores CM7, CM4 in project. CM4 anyway runs in its RAM(ITCM_CM4). But i am looking for CM7 code, should also be executed from ITCM_CM7.

Please suggest.

Is there Flash Loader for IMXRT1175, if any kindly provide the link for Flash Loader of IMXRT1175.

Thanks in advance,

Pavani.

 

0 项奖励
回复
1,909 次查看
Habib_MS
NXP Employee
NXP Employee

Hello again @Pavani2,

I understand that you need to execute on RAM but obtaining the code from an external flash (this can be called Not XIP). If this is the case, you can activate the non XIP (or also disactivating the XIP mode) following this application note: How to Enable Non-XIP Boot on i.MX RT Series EVK (nxp.com).

Also, if you experience any issue, do not hesitate to let me know.

BR

Habib.

0 项奖励
回复