Question
SPC5 studio - placing variables at fixed RAM addresses
Posted on September 27, 2016 at 10:54
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. #address #variables #ram