Linker file for running progam in sram

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

Linker file for running progam in sram

911 Views
DanielDFM
Contributor I

I am using a hardware based on RT1064. Hardware is booting from internal Flash. No I wan't to use same flash for storing some data. I notice that I can't run program in flash and store data at the same time.

Only change is here to run the program in internal SRAM than in the flash. Is there an example how I have to set the linker file hat MCU is booting from Flash, copying all data to SRAM and than running application from SRAM ?

 

 

Labels (1)
0 Kudos
4 Replies

874 Views
DanielDFM
Contributor I

I can now programming the flash in the application as long as i didn't initialize the RTOS and I2S-DMA. But for my application I need that. How can I reallocating all functions to SRAM instead?

best regards

Daniel

0 Kudos

867 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @DanielDFM ,

In this case please check the last section of the following link.

Best Regards,

Alexis Andalon

0 Kudos

881 Views
DanielDFM
Contributor I

Thanks, that helps much

0 Kudos

894 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @DanielDFM,

Instead of running all your code from the internal SRAM you could try only reallocating the functions that write/read the flash memory. In the following document there's an example where you can check how to do it.

Best Regards,
Alexis Andalon

0 Kudos