FlexRam Reallocation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
597件の閲覧回数
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 解決策
577件の閲覧回数
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 返答(返信)
586件の閲覧回数
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 件の賞賛
578件の閲覧回数
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 件の賞賛
575件の閲覧回数
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 件の賞賛