We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How do I access local C variables in Keil using ARM inline Assembly?
It really depends on whether you are using Arm Compiler 5 (a.k.a armcc) or the Arm Compiler 6 (a.k.a armclang).
Please read: Inline assembly with Arm Compiler 6
Inline assembly in Arm Compiler 6 must be written in GNU assembly syntax while in Arm Compiler 5, it is written in armasm syntax. If you have inline assembly written in armasm syntax, you must modify this to use GNU assembly syntax.
At the end of the section, there are links to the GCC docs if you need more detail.