Hi @vijayc1
In the linker file, define a ram memory range for your own user ram area, then you define the variable in that range, after reset, no power off, the data still exists, you can read back the RAM data after reset.
Wish it helps you!
Best Regards,
Kerry
Hi @vijayc1 ,
If you need to use the internal ram, it is more easy, internal RAM contains: 128K ITCM,128k DTCM, 256k OCRAM. different RAM in the different location.
About the operation, you just need to operate the related address is OK.
Which IDE you are using?
If mcuxpresso, you can refer to this post to use the related address:
https://community.nxp.com/docs/DOC-335283
Wish it helps you!
Best Regards,
Kerry
I am using an application code where i need to write an value at a particular location of internal RAM to do a soft restart is that possible? because i need to read that value back again in the bootloader after the soft restart.
Hi @vijayc1
In the linker file, define a ram memory range for your own user ram area, then you define the variable in that range, after reset, no power off, the data still exists, you can read back the RAM data after reset.
Wish it helps you!
Best Regards,
Kerry
Hi @vijayc1
The SRAM you mentioned is the external SRAM chip or the RT1062 internal RAM?
If it is the external SRAM chip, you need to use the SEMC to connect to your external SRAM, you can refer to the SDRAM code, it will remap to the 0x80000000 address, you need to initialize the SEMC with your external memory, then you can access the related address directly.
SDK code:
SDK_2_10_0_EVK-MIMXRT1060\boards\evkmimxrt1060\driver_examples\semc\sdram
Wish it helps you!
Best Regards,
Kerry