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.

Compiler/DRA829V: Tool reports error on MCR and MRC instructions

Part Number: DRA829V


Tool/software: TI C/C++ Compiler

Hi,

Code that I am trying to build is:

MCR     15, 0, r3, c6, c2, 0
...
MRC     15, 0, r3, c6, c1, 4

I am getting these errors:

[E0004] First operand must be a valid coprocessor number
            MCR     15, 0, r3, c6, c2, 0
[E0004] Coprocessor operation code must be an absolute constant
            MCR     15, 0, r3, c6, c2, 0
[E0004] Coprocessor information field must be an absolute constant
            MCR     15, 0, r3, c6, c2, 0
[E0004] First operand must be a valid coprocessor number
            MRC     15, 0, r3, c6, c1, 4
[E0004] Coprocessor operation code must be an absolute constant
            MRC     15, 0, r3, c6, c1, 4
[E0004] Coprocessor information field must be an absolute constant
            MRC     15, 0, r3, c6, c1, 4

Please point to ARM instruction reference document for ti-arm 18.12.1.lts

Much appreciated!
Rizwan