The default SRAM address for the LPC1778 is at address 0x10000000 - 0x1000FFFF.
Is it possible to relocate the SRAM to be used, to address 0x28000000 - 0x28FFFFFF(SPIFI memory mapped access space)under target options in uVision by just specifying the new address for IRAM1?
Note: I wont be using SPIFI.
What I said before still stands:
Just changing the details under the target options isn't going to do anything to tell the processor to relocate it.
To reposition stack and data to another region, you'd be better off customizing the scatter file.
If what your saying holds true. How is Keil allocating the variables to the specified location just by changing them in target options?
How is Keil allocating the variables to the specified location just by changing them in target options?
For the third time I say:
Now, to be sure:
The target options DO NOT CAUSE ANY REMAPPING TO BE DONE BY THE CPU!
And in case you are unsure why I said this, it is because you said in the original post:
Is it possible to relocate the SRAM to be used ...
Are you trying to relocate SRAM? or does the SRAM already exist at that location? I suspect you are confusing the terminology.
Changing details in the target options tells the linker to position code/data in specified regions.
If this is not giving you sufficient control, then you will have to look at the scatter file.
Yes that's what i meant in the "note" part in my reply above. I just want to relocate the stack and variables. I dont want them to be by default be placed on the onchip SRAM. I want to mimic the SRAM at a different location by changing it in the target options.
I want to mimic the SRAM at a different location by changing it in the target options.
You need to get the terminology right.
You're not mimicking SRAM, you're not relocating SRAM. You're just trying to position data and stack at RAM in a specific location different to where it was before.
So long as there is RAM in those locations and it's not being used for any other purpose, then you should simply be able to set the project options to locate those items at those locations.