Tool/software: Code Composer Studio
I have selected the compiler version GNU v8.3.1.25 (Mitto Systems Limited) with the linker command file of msp430f5438a.
Now I want to set variables in the memory of (linker file example):
RAM: ORIGIN = 0x1C00, LENGTH = 0x4000 /* END=0x5BFF, size 16384 */ ROM (rx) : ORIGIN = 0x5C00, LENGTH = 0xA380 /* END=0xFF7F, size 41856 */ HIROM (rx) : ORIGIN = 0x00010000, LENGTH = 0x00035BFF
How can is set variables to a specific address in the memory e.g. 0x001c00 (RAM) or 0x005c00 (FLASH)? With #pragma LOCATiON(...) , I already tried , but it seems that does not work with GCC. And I do not want to create extra sections in the linker file; is that possible?