This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello all,
I want to put my software version in information segmant on my Flash. I have MSP430F2111 and I am using Code Composer Essentials 3.2
I was try to define assembly file and use lines like:
.infoA
DC8 "Software Version: 0.1"
or
ORG INFOA
DB "Software Version: 0.1"
And I get following error messages:
[E0002] Illegal mnemonic specified
Thank you,
In the case above, I believe the assembler is attempting to treat the DC8 or DB as opcodes and not as a directive such as .byte, .word, etc.
Is your intention to have the software version accessed as a string? If so, try the following:
.string "Software Version: 0.1"
This is taken from the MSP430 Assembly Language Tools v3.0 User's Guide - SLAU131 document.
Okay guys, I figured that out.
Here is how you suppose to do it on CCE v3:
#define VERSION "Version: 0.2"
#define DATE "Date: 10/13/08"
#pragma DATA_SECTION (version, ".infoD");
#pragma DATA_SECTION (date, ".infoC");
const char version[] = VERSION;
const char date[] = DATE;
Also if you want to change your memory space it can be done by changing following file in a project:
lnk_msp430f2111.cmd
Thanks for your help!
**Attention** This is a public forum