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.

LDR Rn Literal creating compilation errors

Other Parts Discussed in Thread: TMS570LS20216

Hello,

I am trying to write some assembly code for the TMS570ls20216 processor. On compilation it shows an error due to the following statement.

 

 

UInt32 g_TsInitStackPointerAddress;

..

__asm(

" LDR R1, g_TsInitStackPointerAddress");

The error console shows :-

 Address must be defined in the current section

LDR R1, g_TsInitStackPointerAddress

 

"C:\DOCUME~1\RenjithG\LOCALS~1\Temp\0405210", ERROR! at line 310:

[E0004]

Illegal operand

LDR R1, g_TsInitStackPointerAddress

 

2 Assembly Errors, No Assembly Warnings

 

 

Can anyone please let me know how to sort it out ?

 

Thanks in advance,

Renjith George