Hello Jim
I viewed your link command file which defines “F__xRAM__start” in LCF as:
F__xRAM__start = 0xAA55;
By default, in C file, it uses the variable defined in LCF as an address, so in order to get your expected value in C file, please use it as below:
extern int __xRAM__start;
void function()
{
int i;
i = (int)&__xRAM__start;
…
}
I attached the example project, as well as the screenshot for its assembly out and running result.

Best Regards
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------