Hi,
I am working in Code Composer Studio 4.1.1.
I am facing problem to give immediate addressing to few of my global variables. I want to place three arrays in memory location 0x1080, array should be placed continuously on this memory location. For this I have used following statements,
#pragma DATA_SECTION(HVersionArray, ".infoB")
#pragma DATA_SECTION(Serial_number, ".infoB")
#pragma DATA_SECTION(ModelNumber, ".infoB")
const unsigned char HVersionArray[3] ={Some data};
const unsigned char Serial_number[15] ={Some data};
const unsigned char ModelNumber[64] ={Some data};
This is giving error message
"../lnk_msp430f2471.cmd", line 84: error: placement fails for object ".infoB",
size 0x54 (page 0). Available ranges:
INFOB size: 0x40 unused: 0x40 max hole: 0x40
error: errors encountered during linking; "DongleX.out" not built
How to achieve continuous addressing of this varibales.
As this is very easily possible in IAR using following statements
//IAR code
__root const unsigned char HVersionArray[3] @ 0x1080 ={Some data};
__root const unsigned char Serial_number[15] @ 0x1084 ={Some data};
__root const unsigned char ModelNumber[64] @ 0x1094 ={Some data};
Is there any syntax available in CCS to achieve same?
Vishal N