FlexRam Reallocation

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

FlexRam Reallocation

跳至解决方案
1,059 次查看
MithileshKumar
Contributor II

I have followed the guide on:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649

I got a custom board with a RT1052xxx6B. Using a J-link debugger on the SWD I/F and using Eclipse with IAR integrated as workbench.. 

I want to maximize the amount of DTCM i.e. 256k, and ITCM - 128k, OCM - 128k.

While debugging initially the code run to main but when try to restart the code, it does not run to main.

There is also bootlaoder involved in configuration of MPU. I am not sure whether bootlaoader restrict expansion of memory.

 

标签 (1)
0 项奖励
回复
1 解答
1,039 次查看
MithileshKumar
Contributor II

Just to check whether bootloader is cause issue, disabled the bootloader.

Now the code is not getting flashed when flexram configuration is implemented.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,048 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MithileshKumar ,

  Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

  If you have the bootloader, I highly recommend you do the flexRAM allocate in the bootloader directly, as you know, the code will run the bootloader at first.

  Anyway, when do the flexRAM allocation, it can use the register to modify it. So, normally, after reset, it enters the reset handler, do the related register confiruation.

I suggest you do the flexRAM allocation in the bootloader which is running in the flash, then to the app, you can use your allocated memory assignment directly.

If you still have issues, I think, you even can use a simple project, eg, led_blinky, with your DTCM i.e. 256k, and ITCM - 128k, OCM - 128k. test it at first, after it works, then meger your flashloader again.

 

 

Wish it helps you!

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

Best Regards,

Kerry

 

0 项奖励
回复
1,040 次查看
MithileshKumar
Contributor II

Just to check whether bootloader is cause issue, disabled the bootloader.

Now the code is not getting flashed when flexram configuration is implemented.

0 项奖励
回复
1,037 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @MithileshKumar ,

   Don't worry, if you can't flash the chip, do the flash mass erase, it will recover it.

   You even can use the JLINK command: erase all

   If this can't work, you also can enter the serial download mode, use the MCUbootUtility to erase it:

https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v3.5.0
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

Best Regards,

Kerry

0 项奖励
回复