we are working on a project based on a S12X microcontroller. Part of our application code is developed in Matlab/Simulink and then translated into C code using Targetlink from dSpace.
All calibratable parameters are declared in Targetlink as "CAL", which equals in C to the attributes "volatile const". When we used Cosmic as compiler, these CAL parameters were allocated into RAM memory, thus they were all calibratable using an external tool which access to the microcontroller memory in some ways (typically using CCP).
We recently moved to Codewarrior tools and now all CAL variables are allocated in ROM memory, so they are no more tunable. If we remove the "const" attributes of course everything is OK, but I would like to know if there is a way to have a variable with "volatile const" attributes allocated in RAM memory.
Does anyone has ever encountered this kind of issue ? Is there a solution for this ?
Thanks in advance for any help.