I'm new to Keil and was using the evaluation version to write small programs. Now, suddenly my startup files no longer build and I get the following message. I rebuilt everything but still no joy. Any idea of how I can recover?
assembling startup_stm32f407xx.s... RTE\Device\STM32F407VGTx\startup_stm32f407xx.s(191): error: A1163E: Unknown opcode R0, , expecting opcode or Macro compiling system_stm32f4xx.c... ".\Objects\GroupAssignment3.axf" - 1 Error(s), 0 Warning(s). Target not created.
labels need to start in the first column (in my experience) otherwise it thinks that the label is an opcode. - Patrick Noonan http://www.keil.com/forum/12186/unknown-opcode-swi-handler/
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! - Andrew T stackoverflow.com/.../error-a1163e-unknown-opcode-r0-expecting-opcode-or-maco-on-stm32f4
Thanks all. It was the missing Tab. I don’t how the file was changed, but now I know where to look.