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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

460件の閲覧回数
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 件の賞賛
1 返信

450件の閲覧回数
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 件の賞賛