With a support entitlement you can also get direct access to our team of highly-qualified Arm experts 24-hours a day
Open a support case
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.