Hi there,
I started to study some concepts about RTOS, and for that I started to write some code to help to understand.
I am using the MSP430F5529 LaunchPad and de Code Composer Studio V6 with the compiler TI V4.4.3.
The question is: when I need to make a call to an assmbly instruction inline that I need to pass a memory address, I am getting
a warning about relocation like this:
warning #17003-D: relocation to symbol "_main" overflowed; the 18-bit relocated address 0x23a21 is too large to encode in the 16-bit field (type = 'R_RELWORD' (16), file = "x.obj", offset = 0x00000000, section = ".data")
The code I am trying to use is this:
uInt16 *temp;
temp = stackPointer[currentTask];
asm(" mov.w temp, r1");
The warning ocurrs in the asm line, I execute the code and the value that is stored in the SP(r1) registes is 0xFFFF, no matter the real value in
the C pointer.
Anybody had a problem like this?
Thank you all.