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.
Hi,
I'm trying to use CCE v.3.1 to program my board (with msp430f5418), but I don't manage to solve an error (ESSENTIAL!) in building my project, because it doesn't find the first reference:
"/lnk_msp430f5418.cmd", line 1072: error: placement fails for object
>> Compilation failure
".reset"
I've only written this code:
Main ......
parameters initialization
.....................
.sect ".reset" ; MSP430 RESET Vector
.short Main
(all other vectors)
.end
I've verified that in (msp430f54x.h / lnk_msp430f5418.cmd) all directives are correct.
How can I verify that all sections, (in particular, .intvecs section) are correctly allocated? I must re-define a section ? Should I change a property in CCE linker?
In short....what's wrong!?
Thank you for help!
Alessia
Hi Alessia,
Ing.Prozak said:"/lnk_msp430f5418.cmd", line 1072: error: placement fails for object
>> Compilation failure
".reset"
Note that the size allocated for the .reset section in the cmd file is only 2 words:
RESET : origin = 0xFFFE, length = 0x0002
So it is likely that you are exceeding this size.
ki
Alessia,
If the project contains only assembly source files make sure to check the box when going through the new project wizard for "Configure as an assembly only project".
Than You, Ki, but my problem doesn't depend on stack, I had already checked it.
I found that it was due to a setting in the project creation,(new project wizard) because my project contains only assembly code, and so the reference to the runtime library rts430x.lib must be cleared.
thanks again, good day!
Thank You AartiG, that's the problem!
It was so easy....I don't undestand why this setting doesn't allow to find the correct "first reference"...but OK, I won't forget this!!
Thank you again, good job! :)