SDRAM DEBUG memory region is it lose data after power of the board ?

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

SDRAM DEBUG memory region is it lose data after power of the board ?

784 Views
naresh2
Contributor I

I am using controller is IMXRT1060, IDE is : IAR Embedded workbench 8.40.1

when we open the example code in IAR IDE, we have different memory region SDRAM DEBUG, SDRAM Release and Flexspi nor debug.

My question would be when we select SDRAM DEBUG region in the IDE, where our Application(hex file) will store and from which location the application shall run ? SDRAM or SRAM please let me know. I have attached the image for workspace for the reference please check.

Actually the SDRAM is volatile memory, data will be lose after power off, but after power of board also the application is running, how is it possible how its retaining the data ?

0 Kudos
Reply
1 Reply

774 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @naresh2 ,

   sdram_debug – Project configuration is same as the debug target. The linker file is SDRAM linker, where text is put in internal TCM and data put in SDRAM.

   So, from your description, you download the code to the external SDRAM and run it. to the RAM, the feature is, after power off, the code will disappear.

  More details, you can check the ld file.

  But, please note, you also can generate the code, and download it to the external flash or sd card, then boot it from the flash or sd card, then the ROM will help you copy the code to the SDRAM, that will also work even after POR.

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT1050-SDRAM-app-code-boot-from-SDcard-burn-with...

This application note also useful to you:

https://www.nxp.com/docs/en/application-note/AN12107.pdf

You can refer to it, download to the flash is the same related operation.

 

Wish it helps you!

Best Regards,

Kerry

0 Kudos
Reply