Error: A1163E Unknown Opcode R0, expecting opcode or Macro with instruction in the left column

Andrew T picture Andrew T · Mar 28, 2016 · Viewed 7k times · Source

Today I've been getting this error in my code stating:

RTE\Device\STM32F407VGTx\startup_stm32f407xx.s(191): A1163E: Unknown opcode R0, expecting opcode or macro

Here is the area of code where it stops at:

Error

I have not performed any assembly in the code that I have written, which seems like a common reason why this message appears. Would anyone be kind enough to help me troubleshoot this issue? This is my first time programming with an STM32F4 board, so I am not entirely sure where to begin looking :(

Answer

Andrew T picture Andrew T · Mar 28, 2016

I took a break from looking at my code, and when I came back, I randomly pressed TAB before the LDR statement and the code can now successfully compile with 0 errors and 0 warnings!