AnsweredAssumed Answered

SPC5 studio - placing variables at fixed RAM addresses

Question asked by alem_ on Sep 27, 2016
Latest reply on Oct 14, 2016 by Erwan Y

Hello everyone.
I’m working on a Bolero microcontroller (SPC560D40L3) using SPC5Studio and Hightec Compiler.

 

I have a question related to variables to be located in RAM.
I have a set of global variables, which I need to place in RAM, at fixed addresses.

How can I do that?
Is it sufficient to declare variable as pointers and initialize them with known values?
Are there ant attributes that can be used to force variables to be located at given addresses?
Do I need to make changes to the linker script?

Thank you.

Outcomes