µVISION: Dynamic Syntax Checking shows errors for embedded assembler
Information in this knowledgebase article applies to:
I'm using the embedded assembler in one of my C-function. In the µVision editor, the Dynamic Syntax Checking shows me some errors for this function. Here is an example:
When I hover the mouse over these red error symbols, I see the following error messages:
error: expected '(' after 'asm' error: expected ';' after top-level asm block
error: use of undeclared identifier 'mov'
However, when I build my project, the compiler does not report any errors. Why does the Dynamic Syntax Checking report these errors and how can I avoid them?
In this example, the embedded assembler of the Arm compiler version 5 is used. The µVision Dynamic Syntax Checking uses the same compiler-frontend as our Arm compiler version 6. Since the syntax for the embedded assembler of Arm compiler version 5.x is different to the inline assembler of compiler version 6, this syntax is not recognized and errors are generated.
It is not planned to change this behavior. If you stay with Arm compiler version 5, you need to ignore these errors or turn off Dynamic Syntax Checking. You might consider to use the Arm compiler version 6 in the future to avoid this effect.
Last Reviewed: Wednesday, October 10, 2018
of your data.