Hello to everybody,
first of all thank you for your replies.
I saw the variables being put in .rodata section. I thought about moving this section to RAM, but I don't like the idea because this way everything "const" will be put into RAM, wasting a lot of RAM memory space.
I was hoping to find a better solution with a special attribute for the linker or something similar.
I'm actually surprised no one ever encountered this issue when using Codewarrior with automatic code generators like Targetlink. I don't know why "volatile const" is declared into RAM when using Cosmic and maybe other compilers and not with Codewarrior. These attributes are known to be used for this purpose, when the values are to be modified externally by something else than the application, so the compiler returns an error if the program attempts to write them.
If anyone else has another idea, please let me know, otherwise I will just remove the const attribute from the automatic code generator and that's it. I already contacted they support and I'm waiting for an answer from their S12X specialist.
Matteo