Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How to put a array in the absolute flash address under CCS v5.3

$
0
0

Hi, I'm new user for CCS V5.3. I have programmed MSP430 firmware using IAR3.3 workbench for several years, I try to convert my current IAR project to CCS, but there are lots of errors happen, so I have to step by step to study CCS, I have question now:

under IAR following code works well:

#pragma location = 0x2600

const char LCDDisp[] = {0x0e,0x00,0x0b};

I get follow information from TI's document: If absolute data placement is needed, this can be achieved with entries into the linker command file, andthen declaring the variables as extern in the C code:

/* CCS Linker Command File Entry */

alpha = 0x200;

beta = 0x202;

/* CCS C Code */

extern char alpha;

extern int beta;

So I 'm try to change the lnk_msp430fg4619.cmd that under my project, to add

LCDDisp[] = 0x2600;

in the code add:

const char LCDDisp[] = {0x0e,0x00,0x0b};

but it is not work, the LCDDisp[] array is not in the 0x2600 start address.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>