FlexRam Reallocation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FlexRam Reallocation

Jump to solution
1,160 Views
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.

 

Labels (1)
0 Kudos
Reply
1 Solution
1,140 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
1,149 Views
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 Kudos
Reply
1,141 Views
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 Kudos
Reply
1,138 Views
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 Kudos
Reply